• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2018 MyBB Group.