Welcome Guest, Not a member yet? Register   Sign In
[Solved] Routing Question.
#6

I would not advise doing that as you would need to edit ./system/core/CodeIgniter.php file. And it is never a good idea to edit the core files.

But if you do want to do that this should work:
PHP Code:
if( is_dir(APPPATH.'controllers/'.$error_class) ) {
 
   // Set the class as the directory
 
   $RTR->set_directory($error_class);
 
   // $method is the class
 
   $error_class $error_method;
 
   // Re check for slash if method has been set
 
   if (sscanf($error_method'%[^/]/%s'$error_class$error_method) !== 2)
 
   {
 
       $error_method 'index';
 
   }


Place it after these lines, round line number 433-436:
PHP Code:
if (sscanf($RTR->routes['404_override'], '%[^/]/%s'$error_class$error_method) !== 2)
{
    $error_method 'index';

Reply


Messages In This Thread
[Solved] Routing Question. - by wolfgang1983 - 10-30-2015, 11:07 PM
RE: Routing Question. - by ignitedcms - 10-31-2015, 12:54 AM
RE: Routing Question. - by wolfgang1983 - 10-31-2015, 02:17 AM
RE: Routing Question. - by Martin7483 - 10-31-2015, 01:37 AM
RE: Routing Question. - by wolfgang1983 - 10-31-2015, 02:04 AM
RE: Routing Question. - by Martin7483 - 10-31-2015, 02:23 AM
RE: Routing Question. - by wolfgang1983 - 10-31-2015, 02:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB