• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problem wit herror 404 handling...

hey guys,

i am using a htaccess file to route to custom error pages on various html errors:
ErrorDocument 401 /fault/code/401
ErrorDocument 403 /fault/code/403
ErrorDocument 404 /fault/code/404
ErrorDocument 500 /fault/code/500
ErrorDocument 503 /fault/code/503

the fault controller does this:
$error_code = $this->uri->segment(3);
$this->load->view('browser/error/'.$error_code, $data);

so, if i will get a 404 error, the fault controller will be running and will be display the correct view. but the view will not be parsed. every php tag will be ignored and such things like {elapsed_time} will not be converted.

could someone explain me why this not handles correct?

thank you!

kind regards

no one has a solution for this issue?

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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