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!')); } }
/** * This is the action to handle external exceptions. */ public function actionError() { parent::error(); }
public function actionIndex() { $slug = Yii::app()->settings->get('general', 'homepage'); parent::renderPageSlug($slug); }