function __construct($config) { parent::__construct(); $this->config = $config; $this->module_name = $config["module_name"]; $this->module_path = $config["module_path"]; $this->initView(); }
function __construct($config = array()) { parent::__construct(); if (count($config) == 0) { $this->view = $this->registry['view']; } else { $this->config = $config; $this->modules = $config["modules"]; $this->module_name = $config["module_name"]; $this->module_path = $config["module_path"]; $this->initView(); } $this->model = new Engine_Model(); $this->action = $this->registry["action"]; $this->args = $this->registry["args"]; $this->get = $this->registry["get"]; $this->post = $this->registry["post"]; }