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