简体   繁体   中英

Declaration of Issue after upgrading cakephp 1.3 to 2.0

I am getting this issue when I try to upgrade from cakephp 1.3 to 2.0

Strict (2048): Declaration of UserController::validate() should be compatible with Controller::validate() [APP/Controller/UserController.php, line 3]

My line number 3 in the UserController.php is

class UserController extends AppController {

I have defined a validate() function in side UserController.php and calling like this

$this->validate();

Please help

There is a public function validate() { defined in Cake's Controller.php .

If you have your own function, you should rename it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM