![]() |
Is this right for a 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: Is this right for a controller? (/showthread.php?tid=51986) |
Is this right for a controller? - El Forum - 05-25-2012 [eluser]mfroseth[/eluser] Trying to grasp this Controller/Model thing. Am I doing this right? Code: <?php Is this right for a controller? - El Forum - 05-25-2012 [eluser]mfroseth[/eluser] I meant model! Is this right for a controller? - El Forum - 05-25-2012 [eluser]Rolly1971[/eluser] if your looking to create a model class you need to extend CI_Model, not CI_Controller Code: class Agents extends CI_Model |