[eluser]naruto[/eluser]
CodeIgniter 1.6.0 breaks this script. To fix it, replace the format() function in MY_URI.php as follow:
Code:
/**
* Grab the requested file format fromt he URI
* This requires an addition to the routes.php file:
*
* $route['(:any)/(:any)\.(:any)'] = "$1/$2";
* @return string
*/
public function format($default_return = false, $separator = '.')
{
$format = $default_return;
if (count($this->segments)) {
$last_segment = explode($separator, end($this->segments));
if (count($last_segment) > 1) {
$format = strtolower(end($last_segment));
}
}
return $format;
} // format()