Exemple #1
0
 /**
  * Constructor
  *
  * Runs the route mapping function.
  */
 function MY_Router()
 {
     // {{{ Matchbox
     $this->_matchbox =& load_class('Matchbox');
     // }}}
     parent::CI_Router();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->load_config();
     $this->detect_method();
     $fmt = $this->detect_format();
     $this->detect_view($fmt);
     parent::CI_Router();
 }
Exemple #3
0
 function MY_Route()
 {
     // HACK: support overridding REQUEST_METHOD by posting a _method parameter
     if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['_method'])) {
         $_SERVER['REQUEST_METHOD'] = strtoupper($_POST['_method']);
     } elseif (isset($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE'])) {
         $_SERVER['REQUEST_METHOD'] = strtoupper($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE']);
     }
     parent::CI_Router();
 }
Exemple #4
0
 function MY_Router()
 {
     parent::CI_Router();
 }
Exemple #5
0
 /**
  * Builds the object, sets up the router
  */
 public function __construct()
 {
     parent::CI_Router();
 }
 function MY_Router()
 {
     $this->_mb_init();
     parent::CI_Router();
     log_message('debug', "Matchbox: Router Class Hooked");
 }
 /**
  * Constructor
  */
 function APM_Router()
 {
     $this->server_request = $this->_detect_request_method();
     $this->_http_format_url();
     parent::CI_Router();
 }
Exemple #8
0
 /**
  * Constructor
  *
  * @access	public
  */
 function SP_Router()
 {
     parent::CI_Router();
 }