Controller_Shindig_Public::before PHP Метод

before() публичный Метод

public before ( )
    public function before()
    {
        parent::before();
        $this->template->title = '';
        $this->template->menu = array();
        $this->template->menu_b = array();
    }

Usage Example

Пример #1
0
 public function before()
 {
     if ($this->request->param('slug') and $this->request->action != 'page') {
         $this->request->action = 'post';
     }
     parent::before();
 }