Thursday, April 17, 2008, 11:13 AM - General
Posted by Administrator
Code Igniter (CI) uses default error pages to handle the variety of errors from the system. All of these error pages are stored in the errors folder off of the application folder. I use includes in my site for the header, footer and side column to enforce uniformity; on the 404 pages, if you have your htaccess setup correctly, you can use the same includes. The error pages are outside of the code igniter's functionality, which is why this is important, as the ability to do extra things (like access a database, for example) aren't present. Using the routing, you could direct (after the 404 redirect) visitors to an error page within the CI framework, but the redirected page won't register as a 404 page (thus throwing off the search engines and visitor's links as they won't return an error code).Posted by Administrator
You can, however hard code some content ad even have a form that points to a CI framework function (which will return them to another CI page, off of the error page).
Happy coding.




( 3.1 / 32 )

Calendar
