Example #1
0
 /**
  * @param \Nette\ComponentModel\IContainer $presenter
  */
 protected function attached($presenter)
 {
     parent::attached($presenter);
     $this->onAttached($this);
     if ($this->presenter->getParameter('do') === null) {
         $this->redrawControl('table');
         $this->redrawControl('navbar');
         $this->redrawControl('breadcrumb');
     }
 }
Example #2
0
 /**
  * @param \Nette\ComponentModel\IComponent $presenter
  */
 protected function attached($presenter)
 {
     parent::attached($presenter);
     if (!$this->checkCurrentDir()) {
         throw new BadRequestException();
     }
 }