In this post we're going to learn how to log errors in the database in cakephp.Before moving direct on the topic lets clear the default behaviour of cakephp's error logging.
Sometimes it requires to pass the data of the controller file to the javascript files or the view files in cakephp. CakePHP has one inbuilt method called “Controller::set() ”for passing the variable from controller to view. We will use this method in this tutorial.