public function _initialize() { parent::_initialize(); if ($this->user->getId() != 1) { $this->redirect('order/index'); } }
public function _initialize() { parent::_initialize(); $this->assign('shopName', $this->user->getShopName()); }