Hi for all, I need customize the 500, 400, 403, etc status error in views for my app. Is possible? Sorry my English. Thanks.
Hi for all, I need customize the 500, 400, 403, etc status error in views for my app. Is possible? Sorry my English. Thanks.
yes it is possible create a folder name approot/views/system and create following files error404.php, error500.php, error400.php, error403.php and take out the errorHandler from your config
// remove this section
'errorHandler'=>array(
// use 'site/error' action to display errors
'errorAction'=>'site/error',
),
ok. Thanks for your reply. And is posible customize that errors with templates (twig engine).
I never tried it but I am sure you can just enable twig ext and write your error views/templates in twig