CATEGORY: MVC Components in detail

MVC Components in detail

Bootstrap PHP script or Entry script

  • It handles user requests initially.
  • It is the only PHP script that end users can directly request to execute.
  • It contains the following code:

1. // remove the following line when in production mode
2. defined(‘YII_DEBUG’) or define(‘YII_DEBUG’,true);
3. // include Yii bootstrap file
4. require_once(‘path/to/yii/framework/yii.php’);
5. // create application instance and run
6. $configFile=’path/protected/config/main.php’;
7. Yii::createWebApplication($configFile)->run();

There are no more results.