namespace blog; use Orm; use Fuel\Core; class Controller_Category extends \Controller_Template { /** * The index action. * * @access public * @return void */ public function action_index() { $this->template->title = "Category Index"; $data['categories'] = Model_Category::find('all',array('order_by' => array('position' => 'asc'))); $view = \View::factory('category/index',$data); $view->set('form',Model_Category::getForm(\Uri::create('blog/category/save')),false); $this->template->css = array('uni-form/uni-form.css','uni-form/default.uni-form.css'); $this->template->content = $view; } }With RC2 everything is working fine, but if i update to RC3 i get an exceptipon:
If I replace the /fuel/core/classes/autoloader.php::load class with the one of RC2 everything is working fine again. Is there any namespace thing that i got wrong for calling the Model_Category::find() method ? I hope this is not a multi post in here. greets,Fatal error: Class 'blog\Model_Category' not found in /home/dwe/www/dawen-blog/fuel/app/modules/blog/classes/controller/category.php on line 18
$data['categories'] = \Model_Category::find('all',array('order_by' => array('position' => 'asc')));
It looks like you're new here. If you want to get involved, click one of these buttons!