Models in PHP4 - 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: Models in PHP4 (/showthread.php?tid=9121) |
Models in PHP4 - El Forum - 06-12-2008 [eluser]nirbhab[/eluser] Hello all, My code: Code: <?php echo $this->SiteModules->SiteModules_var;?> Quote:A PHP Error was encounteredcontroller constructor: Code: function Welcome() Models in PHP4 - El Forum - 06-12-2008 [eluser]nirbhab[/eluser] If call the syntax in controller, than also i am getting the same error. Models in PHP4 - El Forum - 06-12-2008 [eluser]nirbhab[/eluser] RESOLVED Code: $CI =& get_instance(); Code: $this->CI = new CI_Base(); Guys please help me, whole application has to be build in php4 Models in PHP4 - El Forum - 06-13-2008 [eluser]Gavin Blair[/eluser] try keeping the model calls in the controller? i've never had to have a view talk to a model, it seems to go against MCV Models in PHP4 - El Forum - 06-13-2008 [eluser]nirbhab[/eluser] See MVC is different thing here, but when we are talking about concepts, It should work,in fact....it is running fine on php5, i have tried every possible, things i could. Controller, Views.... But it is not working....any buddy has tried running models in php 4.4.8, Apache 1.3 and mysql 4. Guys My CI Libraries are doing great, and has solved my problem to all extends, but why my models are not working? i am not getting this. |