/** * <Create By Jason> * <TO show list of document in tenant user> */ public function actionDownload() { try { $this->pageTitle = 'Download - ' . Yii::app()->params['title']; if (!isset(Yii::app()->user->id)) { $this->redirect(Yii::app()->createAbsoluteUrl('/')); } $document = ProUploadDocument::getListDocument(); $this->render('download', array('document' => $document)); } catch (Exception $exc) { echo $exc->getMessage(); } }