开发者

Works only in root folder

开发者 https://www.devze.com 2023-03-03 21:05 出处:网络
My application written with YII framework works only if placed in root folder like: Localhost/ if I place i开发者_运维问答t somewhere like: localhost/test, then it does not work(Links does not work, C

My application written with YII framework works only if placed in root folder like: Localhost/ if I place i开发者_运维问答t somewhere like: localhost/test, then it does not work(Links does not work, CSS is not attaching) Where should I change it? thanks!


You should work around your basePath variable in protected/config/main.php. In almost all cases it looks like

'basePath' => dirname(__FILE__).'/..'

But if this won't help you i think you should check your web-server config.

0

精彩评论

暂无评论...
验证码 换一张
取 消