/** * User manager index */ public function actionIndex() { $model = new AdminLog('search'); $model->unsetAttributes(); if (isset($_GET['AdminLog'])) { $model->attributes = $_GET['AdminLog']; } $this->title[] = at('Admin Logs'); $user = null; if (getRParam('user')) { $user = User::model()->findByPk(getRParam('user')); if ($user) { $this->title[] = at('Viewing logs for {name}', array('{name}' => $user->name)); } } $this->render('index', array('model' => $model, 'user' => $user)); }