コード例 #1
0
ファイル: AgentController.php プロジェクト: jasonhai/onehome
 /**
  * <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();
     }
 }