六狼论坛's Archiver
首页
›
PHP
› yii filter 过滤使用
wytoy
发表于 2013-1-28 09:08:06
yii filter 过滤使用
废话少说,上代码
public function filters() { //过滤只用于actionEdit和actionCreate方法 return array( 'test + edit, create', ); } //定义的过滤方法 public function FilterTest($filterChain) { //判断什么的 //过滤完后继续执行代码 $filterChain->run(); }
页:
[1]
查看完整版本:
yii filter 过滤使用