InterviewSolution
| 1. |
What Is Name Of First File The Loaded When Yii Framework Starts? |
|
Answer» Index.php is first FILE that is called Yii framework starts. In turn it will create a new OBJECT of new YiiwebApplication and start the application. require(__DIR__ . '/../vendor/autoload.php'); require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php'); // load application configuration $CONFIG = require(__DIR__ . '/../config/web.php'); // instantiate and configure the application (new yiiwebApplication($config))->RUN(); Index.php is first file that is called Yii framework starts. In turn it will create a new object of new YiiwebApplication and start the application. require(__DIR__ . '/../vendor/autoload.php'); require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php'); // load application configuration $config = require(__DIR__ . '/../config/web.php'); // instantiate and configure the application (new yiiwebApplication($config))->run(); |
|