Page_router doesn't extend
Hi there,
When attempting to extend Page_router, you'll find that it won't work correctly and will display 404 pages instead.
<?php
require_once(MODULES_PATH . '/fuel/controllers/page_router.php');
class MY_Page_router extends Page_router {
public function __construct() {
parent::__construct();
}
public function _remap($method) {
return parent::_remap($method);
}
}
?>
In routes I have:
$route['default_controller'] = 'my_page_router';
$route['404_override'] = 'my_page_router';
*
http://forum.getfuelcms.com/discussion/237/question-on-location-and-modules/p1
Comments
parent::__construct(); seems to make it 404.
There should be no behavioural difference between using "fuel/page_router" and "my_page_router", but there is.
The page exists as a file view, but all I get is a 404.
$config['fuel_mode'] = 'AUTO';
https://github.com/daylightstudio/FUEL-CMS/commit/75204dc8a8ce8325490919c9c66ae41d92d569ee