Welcome Guest, Not a member yet? Register   Sign In
fallback controller
#5

[eluser]furnissg[/eluser]
Thanks, I tried using the routes config which half worked in that i could route everything through unless i had added a route. The problem with this method is that i would have to write a rule for each controller added, which isnt ideal if working on dynamic sites.

The solution i went forwhich seems to work well is from http://maestric.com/doc/php/codeigniter_404

All i chaged was the cntroller and method to

Code:
var $error_controller = 'home';
var $error_method_404 = 'index';

to run through the method i need.

All i have to do now is implement a cstom 404 when a page doesnt exist.


Messages In This Thread
fallback controller - by El Forum - 11-24-2010, 06:23 AM
fallback controller - by El Forum - 11-24-2010, 06:26 AM
fallback controller - by El Forum - 11-24-2010, 06:30 AM
fallback controller - by El Forum - 11-24-2010, 06:38 AM
fallback controller - by El Forum - 11-24-2010, 07:23 AM
fallback controller - by El Forum - 11-24-2010, 12:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB