Yii Entry Scripts
It is the first step in application handling process and responsible to start a request handling cycle. An application has a single entry script. Request made by end users comes to entry script which initialize the application and forward the request to them.
These scripts are stored under web application directories to make them accessible by the end users. By default, they are named as index.php but can also be given other names.
For a console application, entry scripts are stored in base path and named as yii.php. They should be made executable for users to run on console application.
Entry scripts perform following work:
Global constants are very well defined in the entry scripts. They should be defined at the beginning of an entry script for effective result when other PHP files are included. Yii framework supports following three constants: