2011-04-03 17:24:49 0 评论 Yii 1.0 Boy.Lee

Yii 1.0中的路径

{basePath}

echo Yii::app()->basePath;

path/to/protected

{like} /YiiBlog/protected

{theme baseUrl}

echo Yii::app()->theme->baseUrl;

path/to/themes/themeName

{like} /YiiBlog/themes

{request baseUrl}

echo Yii::app()->request->baseUrl;
path/to/projectFolder
{like}/YiiBlog

{Link ^ ^} you can find some url control in Yii from here -> Click Me