开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜