/** * Displays a particular model. * @param integer $id the ID of the model to be displayed */ public function actionView($id) { $imagesModel = new Images(); $images = $imagesModel->getData($id); $userId = Albums::getAlbumAuthor($id); $this->render('view', array('model' => $this->loadModel($id), 'dataProvider' => $images, 'id' => $userId)); }