Create Custom 404 error page |
Hi, I'm new to CodeIgniter, and it's not clear for me on how to create a custom 404 page. I already read the following posts :
https://forum.codeigniter.com/thread-66769.html https://forum.codeigniter.com/thread-66110.html https://forum.codeigniter.com/thread-64942.html https://forum.codeigniter.com/thread-64591.html https://forum.codeigniter.com/thread-64591.html https://forum.codeigniter.com/thread-61587.html and the following links: https://stackoverflow.com/questions/3447...error-page https://www.codexworld.com/codeigniter-c...rror-page/ http://www.bourzeix.com/weblog/post/2012...odeIgniter https://www.lucidar.me/en/codeigniter-3-...e-ignitor/ The last one is probably the most interesting and I concluded there are two options :
What is the best practice to create a custom 404 error page ?
You can create your custom 404 page, I'm doing it and it works fine.
Practical guide to IgnitedCMS - Book coming soon, www.ignitedcms.com
(10-08-2018, 07:59 AM)php_rocs Wrote: @imabot, Yes, this is what I did, but it's not working when calling the error_404() function. I finally used the solution described on this page : https://www.lucidar.me/en/codeigniter-3-...e-ignitor/ Not perfect, but do the job.
04-12-2020, 11:40 PM
(This post was last modified: 04-15-2020, 10:15 PM by yafenic34. Edit Reason: spelling ) (10-08-2018, 09:47 AM)imabot Wrote:(10-08-2018, 07:59 AM)php_rocs Wrote: @imabot, I was working on new application krogerfeedback on my localhost, and tried to create a custom 404 but it always returned error. But now, when i search for the solution. I got this thread and the reference guide mentioned hear really helped me. Thanks, to Imabot. |
Welcome Guest, Not a member yet? Register Sign In |