03-22-2009, 06:22 PM
[eluser]DougW[/eluser]
I have implemented a fairly sophisticated site and want the 404 pages to be drawn in the same wrapper as the rest of the site preserving header and footer. In order to avoid duplicate code, I want to include the header and footer views within the error404.php page. Is there a way to redirect or something so that I can call a controller to then load the 404 page, thus setting all the variables I need for the header and footer before plugging in the 404 message?
I have implemented a fairly sophisticated site and want the 404 pages to be drawn in the same wrapper as the rest of the site preserving header and footer. In order to avoid duplicate code, I want to include the header and footer views within the error404.php page. Is there a way to redirect or something so that I can call a controller to then load the 404 page, thus setting all the variables I need for the header and footer before plugging in the 404 message?