/** * @param string $resource */ public function __construct($resource) { parent::__construct($resource); $this->session->access->delete = true; $db = Combine\Registry::getDbConnection(); $this->db = $db->getAdapter(); }
public function __construct() { $this->resource = !empty($_SERVER['HTTP_X_CMB_RESOURCE']) ? $_SERVER['HTTP_X_CMB_RESOURCE'] : ''; $this->process = !empty($_SERVER['HTTP_X_CMB_PROCESS']) ? $_SERVER['HTTP_X_CMB_PROCESS'] : ''; $this->db = Registry::getDbConnection()->getAdapter(); }
/** * @param string $resource */ public function __construct($resource) { parent::__construct($resource); $this->db = Registry::getDbConnection()->getAdapter(); $this->session->form->controls = array(); }