Open a .PHP file

I want to open a .PHP file in Yii

actually like this

https://www.xxxxx.com/controller/view/somefile.php

instead going to controller to create a view and action.

Help me Any way.

do you want to show the source code or process the file?

With htaccess rules mentioned here http://www.yiiframework.com/doc/guide/1.1/en/topics.url#hiding-x-23x you should be able to access php file directly.

put your php file under root folder you should be able to access it let say for instance you have test.php file, you can point your browser to


http://localhost/testapp/test.php