![]() |
Error redeclare class - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Model-View-Controller (https://forum.codeigniter.com/forumdisplay.php?fid=10) +--- Thread: Error redeclare class (/showthread.php?tid=69048) |
Error redeclare class - omid_student - 10-01-2017 Hello I make library Message.php and auto load it in config/autoload.php I use it in one of models But it get error below when i use it ( ! ) Fatal error: Cannot redeclare SendEmailMessage() (previously declared in C:\wamp64\www\alis.ir\Alis_WebService\application\libraries\Message.php:56) in C:\wamp64\www\alis.ir\Alis_WebService\application\libraries\Message.php on line 56 I cannot find where is redeclare class? RE: Error redeclare class - ciadmin - 10-01-2017 You need to share some code, eg your Message.php, so we can see what it extends. On the surface, you are trying to over-ride an existing method in your superclass. RE: Error redeclare class - omid_student - 10-01-2017 It Solved I forgot insert "}" in end of class :|||| |