Пример #1
0
 function __construct($params = array())
 {
     $this->request = Request::createFromGlobals();
     $this->post =& $this->request->request;
     // stupid name
     $this->response = new Response();
     self::$current = $this;
     // artificially inject $request into the request object and params
     foreach ($params as $key => $val) {
         $this->request->request->set($key, $val);
         $this->set_param($key, $val);
     }
 }
Пример #2
0
 public function __construct()
 {
     parent::__construct();
     //optionally init controller
     $this->table_name = $this->model->table_name;
 }
Пример #3
0
 public function __construct()
 {
     parent::__construct();
 }