so I am trying to create a standalone script daemon – pure PHP script – but I need to get Yii configuration.

I do the following



but I get the error:

CHttpRequest is unable to determine the request URI

I guess that is because this script does not run in the browser but I run it via ssh.

How can I use the Yii config file when creating a standalone script?

use yiic and create custom command or create console application (not web application): Yii::createConsoleApplication($config)

If you really need ONLY config file from Yii, then just smth like:


and you’ll get an array with all config options