params[ 'user' ] = $user; $this->title = 'My Yii Application'; if(empty( $videos ) && empty( $gallery->getModels() )) { ?>