Example #1
0
 public function onBeforeRender()
 {
     $this->add('<h3>You dont have access to this page.</h3>');
     parent::onBeforeRender();
 }
Example #2
0
 public function onBeforeRender()
 {
     header("HTTP/1.0 404 Not Found");
     $this->add(render('page-404.php'));
     parent::onBeforeRender();
 }