• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Show a Controller Instead of the 404 File

#2
[eluser]Mirage[/eluser]
The 404 html file is a php file. show_404() outputs that file. So all you need to do is write some php code in the error_404.php that gets checks the login status and then itself executes further output.

You do want to be careful in what you put in there of course, because if you subsequently call stuff that causes the framework to trigger a show_404(), you'll enter a race condition.

Cheers,
-m


Messages In This Thread
Show a Controller Instead of the 404 File - by El Forum - 10-09-2008, 06:07 PM
Show a Controller Instead of the 404 File - by El Forum - 10-09-2008, 09:06 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.