November 7, 2012, 9:53am
My ‘config’ variable from index.php is -
it works fine.
But I when I add a folder say dev into config/ and copy main.php into it and change ‘config’ to -
it gives me an error -
exception ‘CHttpException’ with message 'Unable to resolve the request
The permissions of config/, main.php, development/ are same.
November 7, 2012, 9:58am
You need to change the applications base path in the config file, probably to:
November 7, 2012, 10:46am
Thanks Keith, it works.
But I am confused between runtimePath and basePath variable though. Especially the parent directory of runtimePath variable.
November 7, 2012, 10:50am
You shouldn’t need to worry about runtimePath, it’s just where Yii stores its logs and cache data. Once basePath is set, you shouldn’t need to use it either; you would get paths using Yii::getPathOfAlias(‘path.here’).