[eluser]ckissi[/eluser]
Hello,
First of all .. sorry I posted this first into "ignited code" forum .. I tried to move it here but its impossible.
Seems that I finally got HMVC working for me BUT!!: .. trying to run this url:
Code:
index.php/welcome/welcome/index?d=10
I created new model (for test) in : application\modules\welcome\models\blog
I'm trying to use this model from :
Code:
class Welcome extends Controller {
function Welcome()
{
parent::Controller();
}
function index()
{
$this->load->model('Blog');
$data['posts'] = $this->Blog->get_last_ten_entries();
$this->load->view('welcome_message',$data);
}
}
but I got this message:
Quote:Call to a member function get_last_ten_entries() on a non-object in C:\Internet\Apache2\htdocs\citest\application\modules\welcome\controllers\welcome.php on line 14
I tried to print_r Blog object but it doesn't exist so
$this->load->model('Blog') line simply didn't load model object.. it doesn't exist.
Please help... Thank you.