[eluser]ranjudsokomora[/eluser]
I have solved this,
I extended the CI_URI library as follows:
Code:
<?PHP
class MY_URI extends CI_URI {
function MY_URI() {
parent::CI_URI();
}
// --------------------------------------------------------------------
/**
* Remove the suffix from the URL if needed
*
* @access private
* @return void
*/
function _remove_url_suffix()
{
$index_page = $this->config->item('index_page');
IF (preg_match_all('|/|',$this->uri_string,$out)>=1) {
$uri_explode = explode("/",$this->uri_string);
IF (EMPTY($index_page)) {
$controller = $uri_explode[1];
}
ELSE {
$controller = $uri_explode[2];
}
IF ($controller==$this->config->item('assets_controller'))
{
$this->uri_string = preg_replace("|".preg_quote(".css")."$|", "", $this->uri_string);
}
}
ELSE {
IF ($this->config->item('url_suffix') != "") {
$this->uri_string = preg_replace("|".preg_quote($this->config->item('url_suffix'))."$|", "", $this->uri_string);
}
}
}
}
I then added a new config item to the config.php file.
Code:
$config['assets_controller'] = 'control_file';