Skip to content

Commit ebf75cf

Browse files
second commit
Fixes
1 parent bb4ad20 commit ebf75cf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+2290
-3
lines changed

.gitignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# phpstorm project files
2+
.idea
3+
4+
# netbeans project files
5+
nbproject
6+
7+
# zend studio for eclipse project files
8+
.buildpath
9+
.project
10+
.settings
11+
12+
# windows thumbnail cache
13+
Thumbs.db
14+
15+
# composer vendor dir
16+
/vendor
17+
18+
# composer itself is not needed
19+
composer.phar
20+
21+
# Mac DS_Store Files
22+
.DS_Store
23+
24+
# phpunit itself is not needed
25+
phpunit.phar
26+
# local phpunit config
27+
/phpunit.xml

assets/AppAsset.php

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
/**
3+
* @link http://www.yiiframework.com/
4+
* @copyright Copyright (c) 2008 Yii Software LLC
5+
* @license http://www.yiiframework.com/license/
6+
*/
7+
8+
namespace app\assets;
9+
10+
use yii\web\AssetBundle;
11+
12+
/**
13+
* @author Qiang Xue <[email protected]>
14+
* @since 2.0
15+
*/
16+
class AppAsset extends AssetBundle
17+
{
18+
public $basePath = '@webroot';
19+
public $baseUrl = '@web';
20+
public $css = [
21+
'css/site.css',
22+
];
23+
public $js = [
24+
];
25+
public $depends = [
26+
'yii\web\YiiAsset',
27+
'yii\bootstrap\BootstrapAsset',
28+
];
29+
}

commands/HelloController.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
/**
3+
* @link http://www.yiiframework.com/
4+
* @copyright Copyright (c) 2008 Yii Software LLC
5+
* @license http://www.yiiframework.com/license/
6+
*/
7+
8+
namespace app\commands;
9+
10+
use yii\console\Controller;
11+
12+
/**
13+
* This command echoes the first argument that you have entered.
14+
*
15+
* This command is provided as an example for you to learn how to create console commands.
16+
*
17+
* @author Qiang Xue <[email protected]>
18+
* @since 2.0
19+
*/
20+
class HelloController extends Controller
21+
{
22+
/**
23+
* This command echoes what you have entered as the message.
24+
* @param string $message the message to be echoed.
25+
*/
26+
public function actionIndex($message = 'hello world')
27+
{
28+
echo $message . "\n";
29+
}
30+
}

composer.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"name": "yiisoft/yii2-app-basic",
3+
"description": "Yii 2 Basic Project Template",
4+
"keywords": ["yii2", "framework", "basic", "project template"],
5+
"homepage": "http://www.yiiframework.com/",
6+
"type": "project",
7+
"license": "BSD-3-Clause",
8+
"support": {
9+
"issues": "https://github.com/yiisoft/yii2/issues?state=open",
10+
"forum": "http://www.yiiframework.com/forum/",
11+
"wiki": "http://www.yiiframework.com/wiki/",
12+
"irc": "irc://irc.freenode.net/yii",
13+
"source": "https://github.com/yiisoft/yii2"
14+
},
15+
"minimum-stability": "stable",
16+
"require": {
17+
"php": ">=5.4.0",
18+
"yiisoft/yii2": ">=2.0.5",
19+
"yiisoft/yii2-bootstrap": "*",
20+
"yiisoft/yii2-swiftmailer": "*"
21+
},
22+
"require-dev": {
23+
"yiisoft/yii2-codeception": "*",
24+
"yiisoft/yii2-debug": "*",
25+
"yiisoft/yii2-gii": "*",
26+
"yiisoft/yii2-faker": "*"
27+
},
28+
"config": {
29+
"process-timeout": 1800
30+
},
31+
"scripts": {
32+
"post-create-project-cmd": [
33+
"yii\\composer\\Installer::postCreateProject"
34+
]
35+
},
36+
"extra": {
37+
"yii\\composer\\Installer::postCreateProject": {
38+
"setPermission": [
39+
{
40+
"runtime": "0777",
41+
"web/assets": "0777",
42+
"yii": "0755"
43+
}
44+
],
45+
"generateCookieValidationKey": [
46+
"config/web.php"
47+
]
48+
},
49+
"asset-installer-paths": {
50+
"npm-asset-library": "vendor/npm",
51+
"bower-asset-library": "vendor/bower"
52+
}
53+
}
54+
}

0 commit comments

Comments
 (0)