February 12th, 2011
There is a bug in a /MX/Router.php witch produce redirect to 404 page when default_controller not found in /controllers folder. Variable $config[‘uri_protocol’] is set to “AUTO” or to “REQUEST_URI”, otherwise it working fine. That has something to do with new URL protocol auto detection. How to reproduce: 1. clean CI (from bitbucket) 2. HMVC (https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc) [...]
Posted in CodeIgniter | No Comments »
February 1st, 2011
If you need database driven routes then you may consider this simple solution. You need to create following table. 1 2 3 4 5 6 7 8 9 10 CREATE TABLE `ci_routes` ( `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, `src` VARCHAR(255) NOT NULL, `dest` VARCHAR(255) NOT NULL, PRIMARY KEY (`id`,`src`), UNIQUE KEY `src` (`src`) ) [...]
Posted in CodeIgniter | No Comments »
February 1st, 2011
CodeIgniter 2.0.0 Reactor has been released but width some small bug. If you try to reach somedomain.com/?a=1 or somedomain.com/index.php?a=1 you’ll got 404 Page Not Found So until EllisLab or CI Reactor community release bug fix here it is my own. In your config.php you can leave: $config[’uri_protocol’] = ‘AUTO’; And just put MY_URI.php to /application/core [...]
Posted in CodeIgniter | No Comments »