01-15-2010, 08:23 AM
[eluser]DieterStruik[/eluser]
Hi Waldmeister,
So... first time no success on missing controllers. How about this:
1) Modify the CI error_404.php by replacing the content with:
Ofcourse /nl/site/error404 is an existing method of my catch all controller named Site.
2) Add the following code in the catch all controller from my first post.
Hi Waldmeister,
So... first time no success on missing controllers. How about this:
1) Modify the CI error_404.php by replacing the content with:
Code:
<?php
echo file_get_contents('http://'.$_SERVER['SERVER_NAME'].'/nl/site/error404/'.$_SERVER['REQUEST_URI']);
?>
Ofcourse /nl/site/error404 is an existing method of my catch all controller named Site.
2) Add the following code in the catch all controller from my first post.
Code:
public function error404()
{
// Get all arguments passed.
$args = func_get_args();
// This view shows the $uri string after the /nl/site/error404
$this->load->view('error404', array(
'uri' => join('/', $args)
));
}