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); } }
public function __construct() { parent::__construct(); //optionally init controller $this->table_name = $this->model->table_name; }
public function __construct() { parent::__construct(); }