31 декабря 2016 г.

cakephp missing view ctp file exists

If CakePHP shows you

Missing View: the view was not found. Confirm you have created the file in one of the following paths

even though the view file exists, check the following:

  • permissions on the folder where the file is. some editors/ftp clients create the folders with “000” permissions. make sure the folder is readable
  • confirm the file itself is readable (i.e. has permissions like 0644)
  • this is the least obvious one – if you have a beforeFilter() in your controller that throws that error, make sure it has the parent::beforeFilter() in it

Комментариев нет: