CI newbie - how to build my application with Fuel
I'm a newbie to CI so I'm playing catch up here.
I want to use MVC to build some simple database related features. Nothing too complex.
What is the best way to go about this within the Fuel framework? Can I build my own model, view, and controller extending the code igniter classes, or must I build a module under Fuel to make this work?
I want to get experience with Code Igniter so I would prefer to build my application by extending the code igniter classes, and using their documentation before I get into creating a module for Fuel - is this possible??
I do want to utilize Fuel's layout and blocks, while running the functionality through Code Igniter.
Comments
http://www.getfuelcms.com/user_guide/libraries/my_model
http://codeigniter.com/user_guide/general/controllers.html
I've exteneded CI_controller in the controller file
I've exteneded Base_module_model in the model file
I have a php notice in the controller saying that there is an Undefined Property: Mymodel::$My_model
Filename: controllers/mymodel.php
Also, If you are using the 0.91 branch that uses CI 2.0 then the contstructor needs to look like the following:
class Search extends Controller{
function __construct()
{
parent::__construct();
}
}
I get the error: Fatal error: Class 'Controller' not found in /var/www/fuel/fuel/application/controllers/search.php on line 3
Should I be including anything?
class Search extends CI_Controller{ function __construct() { parent::__construct(); }
That's a CI 2 change.