Welcome Guest, Not a member yet? Register   Sign In
default controller in sub dir doesnt work
#1

(This post was last modified: 04-02-2015, 11:22 AM by ciadmin.)

[eluser]the real rlee[/eluser]
Hi guys not sure this is related to this bug post about sub applications, but i\'ve found i keep getting 404\'s when i set the default_controller to a controller within a subdir. A few echo statements reveals that the class name for the default controller is not getting set properly in Routes.php - it seems to be using the controller path and not the controller name!

Router.php (line 109):
Code:
$this->set_class($this->default_controller);
// is actually setting the class to subdir/controller

And then CodeIgniter.php creates the 404 (line 158):
Code:
$class  = $RTR->fetch_class(); // is subdir/controller
$method = $RTR->fetch_method();
// does a class called \"subdir/controller\" exists - of course not!
if ( ! class_exists($class)
   OR $method == \'controller\'
   OR substr($method, 0, 1) == \'_\'
   OR in_array($method, get_class_methods(\'Controller\'), TRUE)
   )
{


Messages In This Thread
default controller in sub dir doesnt work - by El Forum - 06-21-2007, 12:08 AM
"default controller in sub dir doesnt work" - by El Forum - 06-21-2007, 12:37 AM
"default controller in sub dir doesnt work" - by El Forum - 06-21-2007, 12:57 AM
"default controller in sub dir doesnt work" - by El Forum - 06-21-2007, 02:08 AM
"default controller in sub dir doesnt work" - by El Forum - 06-21-2007, 02:37 AM
"default controller in sub dir doesnt work" - by El Forum - 06-21-2007, 06:53 AM
"default controller in sub dir doesnt work" - by El Forum - 06-24-2007, 12:53 AM
"default controller in sub dir doesnt work" - by El Forum - 06-24-2007, 05:54 PM
"default controller in sub dir doesnt work" - by El Forum - 06-24-2007, 08:37 PM
"default controller in sub dir doesnt work" - by El Forum - 01-18-2008, 12:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB