• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
load different URL

#1
[eluser]Unknown[/eluser]
Hi everyone, just getting started with CI and really liking it so far.

I have a really n00b question:

I've made a custom error handler so I can call an action before a 404 page is shown.

the action at the moment looks something like this.

Code:
function error_404()
{
        echo "<h1>404</h1>";
        
}

would it be possible to call a page based on a url in this function such as

/page/view/1231

without actually doing a redirect to /page/view/1231 ?

so that when the 404 error action is called, it actually shows /page/view/1231


Messages In This Thread
load different URL - by El Forum - 09-22-2009, 02:33 AM
load different URL - by El Forum - 09-22-2009, 05:58 AM
load different URL - by El Forum - 09-22-2009, 06:45 AM
load different URL - by El Forum - 09-22-2009, 09:00 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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