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));
    }
}                                      

< How to display selected value from database in php Create Dynamic menu Using Php Mysql >



Ask a question



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


Back to Top