![]() |
autoloading model - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: autoloading model (/showthread.php?tid=9151) |
autoloading model - El Forum - 06-14-2008 [eluser]Unknown[/eluser] Fatal error: Cannot redeclare class News in C:\wamp\www\mmc2\files\application\models\news.php on line 22 happens after i autoloaded a model or i load a model in more than one controller. am i doing something wrong? autoloading model - El Forum - 06-14-2008 [eluser]Popcorn[/eluser] It seems like you already have a controller with a class "News", try naming the model "news_model" autoloading model - El Forum - 06-14-2008 [eluser]dbashyal[/eluser] you must be right. he must have same name class "news" in controller and model. |