I followed the upgrade guide (after I upgraded from 3.6
to 3.8
) but I get this error:
Error: [CakeViewExceptionMissingTemplateException] Template file "Errorerror500.ctp" is missing
....
If you want to customize this error message, create srcTemplateErrorfatal_error.ctp
After the upgrade procedure my templates moved to app_nameemplates
directory and renamed to *.php
instead of *.ctp
. I updated the app.php
and app.default.php
with the new paths:
'App' => [
'namespace' => 'App',
'encoding' => env('APP_ENCODING', 'UTF-8'),
'defaultLocale' => env('APP_DEFAULT_LOCALE', 'en_US'),
'defaultTimezone' => env('APP_DEFAULT_TIMEZONE', 'UTC'),
'base' => false,
'dir' => 'src',
'webroot' => 'webroot',
'wwwRoot' => WWW_ROOT,
//'baseUrl' => env('SCRIPT_NAME'),
'fullBaseUrl' => false,
'imageBaseUrl' => 'img/',
'cssBaseUrl' => 'css/',
'jsBaseUrl' => 'js/',
'paths' => [
'plugins' => [ROOT . DS . 'plugins' . DS],
'templates' => [ROOT . DS . 'templates' . DS],
'locales' => [ROOT . DS . 'Locale' . DS],
],
],
But still the application is looking for the template files with .ctp
extension and under srcTemplate...
What am I missing?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…