Wednesday, June 11, 2008

Cannot generate view with bake

When i use bake for the cake framework, i got this error :

Notice: Trying to get property of non-object in /usr/share/php/cake_1.2.0.6311-beta/cake/console/libs/tasks/view.php on line 244

Notice: Trying to get property of non-object in /usr/share/php/cake_1.2.0.6311-beta/cake/console/libs/tasks/view.php on line 245

Fatal error: Call to a member function schema() on a non-object in /usr/share/php/cake_1.2.0.6311-beta/cake/console/libs/tasks/view.php on line 250


if you ever meet error like this, and if you using $uses variable in AppController (/app/app_controller.php) thet will be causing an error, just remark them while you using bake ...

https://trac.cakephp.org/ticket/3887