Apply for Zend Framework Certification Training

Codeigniter




   How to Change Dash based URLs To Underscore  in Codeigniter
---------------------------------------------------------------------------------------

Step 1   Add a new class in your 'application/core' directory .

<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
 
class URLCHANGE_Router extends CI_Router 
{
    function _set_request ($param= array())
    {
        parent::_set_request(str_replace('-', '_', $param));
    }
}                                      

< Codeigniter Questions Part 4 Starting a webserver for zend >



Ask a question



  • Question:
    {{questionlistdata.blog_question_description}}
    • Answer:
      {{answer.blog_answer_description  }}
    Replay to Question


Back to Top