在cakephp 2.1中有什么区别$this->data和$this->request->data?
在CakePHP 2 book/Acl Tutorial/Part 2中,我正在执行命令:
./Console/cake AclExtras.AclExtras aco_sync
Run Code Online (Sandbox Code Playgroud)
我收到一个警告错误:
Warning Error: Argument 1 passed to Component::startup() must be an instance of Controller,
null given, called in
/opt/lampp/htdocs/acl/app/Plugin/AclExtras/Console/Command/AclExtrasShell.php
on line 80 and defined in [/opt/lampp/htdocs/acl/lib/Cake/Controller/Component.php, line 119]
Run Code Online (Sandbox Code Playgroud)
该ACOS表获取与居住NULL在model外地,并NULL在所有的领域foreign_key.
我该如何解决这个错误?
谢谢