mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-19 07:50:39 +08:00
adjusted default application template
This commit is contained in:
@@ -10,9 +10,6 @@ return array(
|
|||||||
},
|
},
|
||||||
'permissions' => 0777,
|
'permissions' => 0777,
|
||||||
),
|
),
|
||||||
'assets' => array(
|
|
||||||
'permissions' => 0777,
|
|
||||||
),
|
|
||||||
'protected/runtime' => array(
|
'protected/runtime' => array(
|
||||||
'permissions' => 0755,
|
'permissions' => 0755,
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
<?php
|
|
||||||
16
framework/console/create/default/protected/config/main.php
Normal file
16
framework/console/create/default/protected/config/main.php
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<?php
|
||||||
|
return array(
|
||||||
|
'name' => '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' => '',
|
||||||
|
),
|
||||||
|
*/
|
||||||
|
),
|
||||||
|
);
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
<?php
|
||||||
|
use \yii\web\Controller;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* SiteController
|
||||||
|
*/
|
||||||
|
class SiteController extends Controller
|
||||||
|
{
|
||||||
|
public function actionIndex()
|
||||||
|
{
|
||||||
|
echo $this->render('index', array(
|
||||||
|
'name' => 'Qiang',
|
||||||
|
));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1 +0,0 @@
|
|||||||
<?php
|
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<title><?php echo $this->context->pageTitle?></title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1><?php echo $this->context->pageTitle?></h1>
|
||||||
|
<div class="content">
|
||||||
|
<?php echo $content?>
|
||||||
|
</div>
|
||||||
|
<div class="footer">
|
||||||
|
<?php echo \Yii::powered()?>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Hello, <?php echo $name?>!
|
||||||
@@ -1 +0,0 @@
|
|||||||
<?php
|
|
||||||
Reference in New Issue
Block a user