How To Remove Notice (1): Undefined index when getting URL Parameters? Want to remove Notice in Cakephp? Then follow the below guideline... #Previous, $this->request->query['param_name'] #Change above line like below, $this->request->query('param_name') Hope, now you will not get Notice.
In the Cakephp, the printing of last executed query is not so much good as CodeIgniter. Here is the code, by using this we can print the last executed query in cakephp $dbo = $this->ModelName->getDatasource(); $logs = $dbo->getLog(); $log = end($logs['log']); echo "<pre>"; print_r($log); echo "</pre>"; exit(); Now, you can see the last executed … Continue reading How to print last executed query in cakephp?