Anno Domini Fatal error: Call to undefined method CalendarsController::cleanUpFields() in C:\xampp\htdocs\annodomini\app\controllers\calendars_controller.php on line 20

3 messages Options
Embed this post
Permalink
Chris Simpson

Anno Domini Fatal error: Call to undefined method CalendarsController::cleanUpFields() in C:\xampp\htdocs\annodomini\app\controllers\calendars_controller.php on line 20

Reply Threaded More More options
Print post
Permalink
I've just installed annoi domini but when i go to add a callendar or event i get a fatal error.

Fatal error: Call to undefined method CalendarsController::cleanUpFields() in C:\xampp\htdocs\annodomini\app\controllers\calendars_controller.php on line 20

Whats wrong here?
Stefano

Re: Anno Domini Fatal error: Call to undefined method CalendarsController::cleanUpFields() in C:\xampp\htdocs\annodomini\app\controllers\calendars_controller.php on line 20

Reply Threaded More More options
Print post
Permalink
Hi Chris,

this method was moved to model and is handled automatically [1] in CakePHP 1.2.0.5970.
So you could remove the method call in every controller complete and it works.

Stefano

[1] https://trac.cakephp.org/changeset/6413
davidgolding

Re: Anno Domini Fatal error: Call to undefined method CalendarsController::cleanUpFields() in C:\xampp\htdocs\annodomini\app\controllers\calendars_controller.php on line 20

Reply Threaded More More options
Print post
Permalink
In reply to this post by Chris Simpson
Thanks, Stefano. Yes, cleanUpFields() used to come standard in baked controllers, but is now automatically handled in the model. Unless you're using earlier versions of Cake, this line can be deleted.
--Dave

Author, "Beginning CakePHP: From Novice to Professional"

[ get your copy at: http://www.amazon.com/Beginning-CakePHP-Novice-Professional/dp/1430209771/ ]