Пример #1
0
 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();
 }
Пример #2
0
 public function onBeforeRender()
 {
     $this->add('<h3>You dont have access to this page.</h3>');
     parent::onBeforeRender();
 }
Пример #3
0
 public function onBeforeRender()
 {
     header("HTTP/1.0 404 Not Found");
     $this->add(render('page-404.php'));
     parent::onBeforeRender();
 }