PHP Yii
//YII framework路径Yii::getFrameworkPath();
Yii::getFrameworkPath();
//protected/runtimeYii::app()->getRuntimePath();
Yii::app()->getRuntimePath();
//在view中得到当前controller的ID方法:Yii::app()->getController()->id;
Yii::app()->getController()->id;