# 第3章 項目前臺頁面的搭建
## 前臺頁面
index/index
product/index
product/detail
cart/index
order/check
order/index
member/auth
## 創建控制器、視圖

## 顯示視圖模板布局文件
創建文件:\views\layouts\layout.php
```
頭部
<?php echo $content; ?>
尾部
```
顯示布局:
```
public function actionIndex()
{
$this->layout ='layout';
return $this->render('index');
}
```