Welcome Guest, Not a member yet? Register   Sign In
404
#1

(This post was last modified: 02-26-2020, 12:07 PM by Knutsford.)

I am trying to upgrade to codeignitor 3.1.6 and I am now getting a 404

This the layout of the site


-application
--controllers
---Index.html
--modules
------web
----------config
---------------routes.php
----------controllers
---------------Pages.php
----------models
----------views






The main routes.php has

$route['default_controller'] = "web/pages";
$route['404_override'] = 'web/pages';


The one under web has

$route['web'] = "pages";


In Codeigniter.php I have


Code:
if (empty($class) OR ! file_exists(APPPATH.'controllers/'.$RTR->directory.$class.'.php'))
{
    $e404 = TRUE;
    echo "aaa";
    if (empty($class))
    {
        $e404 = TRUE;
        echo "qqq";
    }
    if (! file_exists(APPPATH.'controllers/'.$RTR->directory.$class.'.php'))
    {
       $e404 = TRUE;
       echo APPPATH.'controllers/'.$RTR->directory.$class.'.php';
       echo "rrr";
    }
}

 When I go to the site I get something like

aaaqqq/home/blaa/blaa/application/controllers/../modules/web/controllers/.phprrr


It isn't finding a class and it has /controllers before modules



The problem is obviously that is isn't finding a class but I have no idea why or where to look. Thanks


I have just changed

$route['default_controller'] = "web/pages";

$route['404_override'] = 'web/pages';

to

$route['default_controller'] = "web/Pages";

$route['404_override'] = 'web/Pages';



Which sends it to the right place but I have got the original problem back that it is ignoring _remap


public function _remap()

    { 

}

is the _remap() call
Reply


Messages In This Thread
404 - by Knutsford - 02-26-2020, 09:33 AM
RE: 404 - by InsiteFX - 02-26-2020, 03:55 PM
RE: 404 - by Knutsford - 02-27-2020, 01:10 AM
RE: 404 - by InsiteFX - 02-27-2020, 04:37 AM
RE: 404 - by Knutsford - 02-27-2020, 12:49 PM
RE: 404 - by InsiteFX - 02-27-2020, 02:59 PM
RE: 404 - by Knutsford - 02-28-2020, 03:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB