![]() |
can not redeclare function quote error in model - 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: can not redeclare function quote error in model (/showthread.php?tid=52849) |
can not redeclare function quote error in model - El Forum - 06-29-2012 [eluser]Ram Krishna[/eluser] My model code is Code: <?php Fatal error: Cannot redeclare class Quote in /opt/lampp/htdocs/crm/application/models/quote.php on line 10 please help me? thanks in advance. can not redeclare function quote error in model - El Forum - 06-29-2012 [eluser]LuckyFella73[/eluser] Is the name of your controller class "quote" too? Renaming the model class to Quote_model would solve the problem then I guess. can not redeclare function quote error in model - El Forum - 06-29-2012 [eluser]weblyan[/eluser] What the error is saying is that there is another class somewhere that is also named Quote. I don't think it is a Codeigniter class. It is probably in you application somewhere or you are somehow including that file twice. |