HMVC - cannot read model from module's controller - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: HMVC - cannot read model from module's controller (/showthread.php?tid=10063) |
HMVC - cannot read model from module's controller - El Forum - 07-17-2008 [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 { 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. HMVC - cannot read model from module's controller - El Forum - 07-17-2008 [eluser]wiredesignz[/eluser] Already answered this in Ignited Code, please don't post the same request twice. |