示例#1
0
 protected function init()
 {
     parent::init();
     $this->filter('before', 'vane::auth')->only('index');
     $this->filter('before', 'csrf')->on('post');
 }
示例#2
0
文件: Block.php 项目: awecode/awecms
 public function init()
 {
     return parent::init();
 }