开发者

How to resolve "Cannot redeclare config() error"?

开发者 https://www.devze.com 2023-01-05 22:29 出处:网络
I am getting this error: Fatal error: Cannot redeclare config() (previously declared in D:\\xampp\\htdocs\\cakephp-trial\\cake\\basics.php:59) in

I am getting this error:

Fatal error: Cannot redeclare config() (previously declared in D:\xampp\htdocs\cakephp-trial\cake\basics.php:59) in D:\xampp\htdocs\cakephp-trial\cake\basics.php on lin开发者_Python百科e 76

Please help! Thanks.


It looks to me like you have created a global function called config somewhere. config is already declared in global space by cakephp in the file basics.php.

Either rename your function or move it into a class.


You create two config() function in basic.php. could you post you basic.php code so i will give you right ans.

0

精彩评论

暂无评论...
验证码 换一张
取 消