Yii Framework

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

Written by Ian Carnaghan · 14 sec read >
  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(

Last Updated On March 22, 2018
Written by Ian Carnaghan
I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment. Profile

Leave a Reply

Notify of