public function __construct($properties = array()) { parent::__construct($properties); if (!$this->table) { throw new \Exception(t('CRUD table not defined')); } $this->form = new \Meta\Form\Crud(); $this->view = new \Meta\View\Crud(); }
public function onBeforeRender() { $this->add('<h3>You dont have access to this page.</h3>'); parent::onBeforeRender(); }
public function onBeforeRender() { header("HTTP/1.0 404 Not Found"); $this->add(render('page-404.php')); parent::onBeforeRender(); }