On Github shamsher31 / yii-training-day-2
Initially handles user Requests.
// change the following paths if necessary $yii=dirname(__FILE__).'/../yiicore/framework/yii.php'; $config=dirname(__FILE__).'/protected/config/main.php'; // remove the following lines when in production mode defined('YII_DEBUG') or define('YII_DEBUG',true); // specify levels of call stack should be shown in each log message defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); require_once($yii); Yii::createWebApplication($config)->run();
'modules'=>array( // uncomment the following to enable the Gii tool 'gii'=>array( 'class'=>'system.gii.GiiModule', 'password'=>'gii', // If removed, Gii defaults to localhost only. 'ipFilters'=>array('127.0.0.1','::1'), ), ),Used in Large Scale Applications. Best example is Gii. User and Comment Management.
'modules'=>array( // uncomment the following to enable the Gii tool 'gii'=>array( 'class'=>'system.gii.GiiModule', 'password'=>'gii', // If removed, Gii defaults to localhost only. 'ipFilters'=>array('127.0.0.1','::1'), ), ),
"No one knows better then Google"