Custom 404 page loading view.php
Permalink
I followed the instructions here to a T:
http://www.rynomediaonline.com/rynomediaonline.com/resources/custom...
But for whatever reason, my view.php template is loaded instead of my root/single_pages/page_not_found.php file.
I have the following in root/config/site_theme_paths.php:
http://www.rynomediaonline.com/rynomediaonline.com/resources/custom...
But for whatever reason, my view.php template is loaded instead of my root/single_pages/page_not_found.php file.
I have the following in root/config/site_theme_paths.php:
$v = View::getInstance(); $v->setThemeByPath('/page_not_found', "themename");
I made a new page which I called "error" with the intention to use it as a 404 and 403 page.
and under the concrete/single_pages folder I editted the page_not_found.php and page_forbidden.php files to have the following code:
<?php
header("Location:http://www.websitename.com/error");
exit;
?>
remove everything else in it.
this triggers it to open the "error" page on all errors which lead to those pages, ofcourse you need to edit those files again after a core update.
ofcourse you can style that page any way you like.