diff --git a/framework/console/create/config.php b/framework/console/create/config.php index 54bcf441e2..29f0b0b6a8 100644 --- a/framework/console/create/config.php +++ b/framework/console/create/config.php @@ -10,9 +10,6 @@ return array( }, 'permissions' => 0777, ), - 'assets' => array( - 'permissions' => 0777, - ), 'protected/runtime' => array( 'permissions' => 0755, ), diff --git a/framework/console/create/default/index-test.php b/framework/console/create/default/index-test.php deleted file mode 100644 index a81436628e..0000000000 --- a/framework/console/create/default/index-test.php +++ /dev/null @@ -1 +0,0 @@ - 'My Web Application', + + 'components' => array( + // uncomment the following to use a MySQL database + /* + 'db' => array( + 'class' => 'yii\db\dao\Connection', + 'dsn' => 'mysql:host=localhost;dbname=testdrive', + 'username' => 'root', + 'password' => '', + ), + */ + ), +); \ No newline at end of file diff --git a/framework/console/create/default/protected/controllers/SiteController.php b/framework/console/create/default/protected/controllers/SiteController.php new file mode 100644 index 0000000000..b47b93ca8b --- /dev/null +++ b/framework/console/create/default/protected/controllers/SiteController.php @@ -0,0 +1,15 @@ +render('index', array( + 'name' => 'Qiang', + )); + } +} \ No newline at end of file diff --git a/framework/console/create/default/protected/tests/bootstrap.php b/framework/console/create/default/protected/tests/bootstrap.php deleted file mode 100644 index b3d9bbc7f3..0000000000 --- a/framework/console/create/default/protected/tests/bootstrap.php +++ /dev/null @@ -1 +0,0 @@ - + +
+ +