Alexander Makarov
12 years ago
8 changed files with 48 additions and 6 deletions
@ -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?>!
|
Loading…
Reference in new issue