Reputation: 39
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
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