Cee Jaiy
Cee Jaiy

Reputation: 39

How can i change the base url of an application in yii1?

I'm new to the Yii Framework. I was given an application to work on at the office. How can I change the base url of an application in Yii1?

Upvotes: 1

Views: 575

Answers (1)

Irfan Ali
Irfan Ali

Reputation: 2258

You can edit /path/to/application/protected/config/main.php to change the default value. Add a request component, and configure baseUrl porperty.


    return array(
        ...
        'components' => array(
             ...
             'request' => array(
                 'baseUrl' => 'http://www.example.com',
              ),
         ),
      );

Upvotes: 1

Related Questions