Welcome Guest, Not a member yet? Register   Sign In
Error redeclare class
#1

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?
Reply
#2

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.
Reply
#3

It Solved
I forgot insert "}" in end of class :||||
Reply




Theme © iAndrew 2016 - Forum software by © MyBB