How to change the url for Yii::app()->homeUrl in Yii

No Comments
  1. Open the main configuration file protected/config/main.php
  2. Now in the main.php file we can assign a Action or Url to homeUrl
    _highlight[1] = “\n\nreturn array(\n\n \’basePath\’=>dirname(__FILE__).DIRECTORY_SEPARATOR.\’..\’,\n\n  \’homeUrl\’=>array(\’site/login\’),\n\n  ….\n\n”;

    return array(

Image Credits: Photo by Isis França on Unsplash.

Last Updated On March 22, 2018

Related Articles

No results found

Leave a Reply

Notify of
Copy link