Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // in a controller file somewhere
- public function actionFoo()
- {
- ...
- $this->render('blah', array(
- 'model' => $model,
- 'includeSpecialForm' => Yii:app()->user->checkAccess('isSpecial')
- ) );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement