示例#1
0
 /**
  * Constructor
  * 
  * @param $root
  * @param $segments
  * @return unknown_type
  */
 public function __construct($dispatcher, $method, $root, &$segments, $query = null)
 {
     $result = parse_switches();
     foreach ($result as $key => $value) {
         $_GET[$key] = $value;
     }
     parent::__construct($dispatcher, $method, $root, $segments, $query);
     $this->method = 'POST';
 }
示例#2
0
 /**
  * Constructor 
  * 
  * @param $path
  * @param $controller_root
  * @param $view_root
  * @param $use_routes
  * @param $force_routes
  */
 public function __construct($path = null, $controller_root = null, $view_root = null, $use_routes = true, $force_routes = false)
 {
     $args = parse_args();
     $switches = parse_switches();
     $path = $path ? $path : $args[0];
     array_shift($args);
     $controller_root = $controller_root ? $controller_root : PATH_APP . 'shell/controller/';
     $view_root = $view_root ? $view_root : PATH_APP . 'shell/view/';
     parent::__construct($path, $controller_root, $view_root, $use_routes, $force_routes);
     $this->segments = $args;
 }