I'm fairly new to yii, would like to know how to change the default page pra that instead of going to the index is directed to a page comingsoon I have.
Thanks for your time.
I'm fairly new to yii, would like to know how to change the default page pra that instead of going to the index is directed to a page comingsoon I have.
Thanks for your time.
Method 1: Change view page rendered in SiteController.php's index action:
public function actionIndex() {
$this->render('index'); // change to "comingsoon"
}
Method 2: Let 404 error page display a coming soon message.
Method 3: Redirect to error page using URL manager rules in main.php:
'urlManager' => array(
'rules' => array(
'index'=>'site/index', // change "site/index" to "site/comingsoon"
...
Method 4: .htaccess
rewrite.