Author: Tuan Nguyen (nganhtuan63@gmail.com)
Inheritance: extends RController
Example #1
0
 public function actionRender()
 {
     $slug = isset($_GET['slug']) ? plaintext($_GET['slug']) : false;
     if ($slug) {
         parent::renderPageSlug($slug);
     } else {
         throw new CHttpException('404', t('cms', 'Oops! Page not found!'));
     }
 }
Example #2
0
 /**
  * This is the action to handle external exceptions.
  */
 public function actionError()
 {
     parent::error();
 }
Example #3
0
 public function actionIndex()
 {
     $slug = Yii::app()->settings->get('general', 'homepage');
     parent::renderPageSlug($slug);
 }