Calling Joomla!'s Default 404 Page

by Zachary Draper   Last Updated April 16, 2018 07:10 AM

I am working on a custom component that displays pages to the user on the front-end. It is possible that a user may try to access a page of the component that no longer exists, and in these instances, I would like to show the 404 page that is already setup. How do you cause Joomla! to display the 404 page from a custom component? Just like with a normal 404 error, I am looking for the address bar not to change. Being able to do this from the model would be preferable.

Thank you for your help.



Related Questions



Restore Backup Joomla 2.5 Errors PHP

Updated September 09, 2016 08:06 AM

Custom 404 page shows unselected modules

Updated March 21, 2017 16:10 PM

Using CodeMirror editor in custom component

Updated October 09, 2016 09:04 AM