Welcome Guest, Not a member yet? Register   Sign In
HMVC - cannot read model from module's controller


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:


I created new model (for test) in : application\modules\welcome\models\blog

I'm trying to use this model from :

class Welcome extends Controller {

    function Welcome()
    function index()
        $data['posts'] = $this->Blog->get_last_ten_entries();

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.

Already answered this in Ignited Code, please don't post the same request twice.

Theme © iAndrew 2016 - Forum software by © MyBB