Пример #1
0
 public function _initialize()
 {
     parent::_initialize();
     if ($this->user->getId() != 1) {
         $this->redirect('order/index');
     }
 }
Пример #2
0
 public function _initialize()
 {
     parent::_initialize();
     $this->assign('shopName', $this->user->getShopName());
 }