arsh302
(Arsh302)
May 13, 2015, 5:34am
1
hello everyone,
Could you help me ?
i have developed the application in Yii framework, which is correctly work on local host, but when I uploaded this on the server, all the associated pages , links not working?
I don’t what’s the problem, and how to resolved this?
Should i have to change the path??
If it is, so please tell me, how to change it ?
I am waiting for your response
Your replies will be appreciated.
Shradheya
(Shradheya Tiwari)
May 14, 2015, 12:24pm
2
Hi,
You can set baseurl wherever you have link, it would be more easy and convenient for you.
thanks
arsh302
(Arsh302)
May 14, 2015, 2:16pm
3
thanks, but please tell me in which file I have to change the base URL
Shradheya
(Shradheya Tiwari)
May 15, 2015, 5:03am
4
Hi,
Please go through this link, Hope it will clear your doubt.
http://www.yiiframework.com/forum/index.php/topic/21474-set-hostinfo-and-baseurl/
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' => 'Your website name',
),
),
);
arsh302
(Arsh302)
May 15, 2015, 9:20am
5
thanks for rply …but its not working…
Shradheya
(Shradheya Tiwari)
May 15, 2015, 9:56am
6
Hi,
Are you getting any error or something else.
please post your code.