コード例 #1
0
ファイル: Order.php プロジェクト: SerdarSanri/VaneMart
 protected function init()
 {
     parent::init();
     $this->filter('before', 'vane::auth')->only('index');
     $this->filter('before', 'csrf')->on('post');
 }
コード例 #2
0
ファイル: Cart.php プロジェクト: SerdarSanri/VaneMart
 protected function beforeAction($action, array $params)
 {
     parent::beforeAction($action, $params);
     return $this->can('cart.disable') ? false : null;
 }
コード例 #3
0
ファイル: Block.php プロジェクト: awecode/awecms
 public function init()
 {
     return parent::init();
 }