Part of the EllisLab Network
   
 
Controller/method for 404 errors
Posted: 09 November 2006 12:04 PM   [ Ignore ]  
Summer Student
Total Posts:  8
Joined  10-21-2006

Hi all,

I’m looking for a way to use a controller’s method instead of a 404 page when a page is not found.

I tweak libraries/Router.php to return array(‘myController’, ‘my404’) instead of calling show_404 but it’s, of course, a very bad idea!

Is there a proper way to do it I missed?

Cheers,

Franck

Profile
 
 
Posted: 09 November 2006 12:06 PM   [ Ignore ]   [ # 1 ]  
Summer Student
Total Posts:  8
Joined  10-21-2006

Sorry, I post this in a wrong category; it should be in “Code and Application Development”

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 64453 Total Logged-in Users: 23
Total Topics: 80959 Total Anonymous Users: 0
Total Replies: 435682 Total Guests: 174
Total Posts: 516641    
Members ( View Memberlist )