Yii Entry Scripts are the user accessible PHP scripts which stand responsible to start a request handling cycle.
The structure of an application is illustrated blow:
Web application and also the console application possess only single entry script. The requests are made by the end user to the entry script. The application instances are initiated by the entry script and the requests are forwarded to them.
The entry script of a console application is stored in Yii.php, a project based path and the entry script for the web application is stored in index.php, a web accessible directory.
The entry script
The entry script for the basic application template is:
The entry script for the console application is:
Global constants are defined best in entry scripts. Yii constants support three entry scripts -
The code used to define a global constant is:
Note – Global constants are defined at the beginning of entry script so as to take effect when other PHP files are included.
Yii Related Interview Questions
|PHP Interview Questions||Zend Interview Questions|
|PHP and Jquery Interview Questions||PHP+MySQL Interview Questions|
|Sybase Interview Questions||Dbase Interview Questions|
|Magento Interview Questions||PHP5 Interview Questions|
|WordPress Interview Questions||CakePHP Interview Questions|
|CodeIgniter Interview Questions||Firebase Interview Questions|
|SQLite Interview Questions||PHP7 Interview Questions|
|Object Oriented Programming in PHP Interview Questions|
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.