so I am trying to create a standalone script daemon – pure PHP script – but I need to get Yii configuration.
I do the following
require_once('../html/framework/yii.php');
Yii::createWebApplication('../protected/config/main.php');
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?