mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-03 22:32:40 +08:00 
			
		
		
		
	bootstrap
This commit is contained in:
		@ -1,8 +1,10 @@
 | 
				
			|||||||
<?php
 | 
					<?php
 | 
				
			||||||
 | 
					define('YII_DEBUG', true);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// change the following paths if necessary
 | 
					$yii = __DIR__.'/../framework/yii.php';
 | 
				
			||||||
$yii=__DIR__.'/../framework/yii.php';
 | 
					require $yii;
 | 
				
			||||||
$config=__DIR__.'/protected/config/main.php';
 | 
					$config = require dirname(__DIR__).'/protected/config/main.php';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
require_once($yii);
 | 
					$basePath = dirname(__DIR__).'/protected';
 | 
				
			||||||
Yii::createWebApplication($config)->run();
 | 
					$app = new \yii\web\Application('webapp', $basePath, $config);
 | 
				
			||||||
 | 
					$app->run();
 | 
				
			||||||
		Reference in New Issue
	
	Block a user