> 原文出處:https://taylorr.gitbooks.io/building-a-web-site-with-symfony
> 作者:[TR@SOE](mailto:taylor.ren@gmail.com)
# Introduction 引言
This book is written in Chinese for Chinese PHP programmers (entry to intermediate level[1]()).
> 1. This means he/she at least has a basic knowledge in Linux and PHP programming. 這意味著他/她具有Linux和PHP編程的基礎知識。
本書以中文寫成,面向中文PHP程序員(初級到中級水平)。
After reading through this book, the readers shall have a better understanding in the following areas:
閱讀完此書后,讀者應該對如下的領域有一個更好的理解:
* MVC structure of a typical web application
* 一個典型的Web應用所使用的MVC結構
* Symfony 3 installation, bootstrapping
* Symfony 3安裝和自舉式配置
* Important concepts and terminologies in Symfony 3
* Symfony 3中重要的概念和術語
* Controller, Routes, Entity, Repository, Templates
* 控制器,路由,實體,倉庫,模板
* Bundle
* 包
We will build from scratch a personal book collection site to learn Symfony 3 framework. This site will have the following features:
我們將學習Symfony 3框架來從頭建立一個個人書籍收藏站點。這個站點將有如下特性:
* A secured backend to CRUD a book entry and other related operations.
* 一個安全的后臺來CRUD一本書籍和其它相關操作。
* A frontend to display book collections, and other related operations.
* 一個前臺來顯示書籍收藏和其它相關操作。
The full code repository can be found?[here](https://github.com/taylorren/rsywx_tutorial).
本教程所有代碼可以在[這里](https://github.com/taylorren/rsywx_tutorial)下載。
Let's get started!
讓我們開始吧!
(All other contents in this book will be written in Chinese.)
(本書其它內容將均以中文寫成。)
[TR@SOE](mailto:taylor.ren@gmail.com)
2015.1.21 Updated: 2016.3.17
- 引言
- 1 LAMP
- 1.1 安裝虛擬機
- 1.2 安裝Vagrant
- 1.3 安裝Ubuntu
- 1.4 安裝Apache 2
- 1.5 安裝PHP
- 1.6 安裝MySQL服務器
- 1.7 最后的微調
- 1.8 設置一個虛擬主機
- 1.9 一個趁手的IDE
- 2 Symfony 3和重要構件
- 2.1 Symfony 3
- 2.2 Doctrine
- 2.3 Twig
- 2.4 Composer
- 3 Symfony重要概念
- 3.1 MVC
- 3.2 Bundle/包
- 3.3 Route/路由
- 3.4 Controller/控制器
- 3.5 Entity/實體
- 3.6 Repository/倉庫
- 3.7 Template/模板
- 3.8 Test/測試
- 4 藏書管理程序的結構
- 5 創建應用
- 5.1 建立版本管理
- 5.2 建立數據庫
- 5.3 應用結構
- 5.4 建立數據庫實體
- 5.5 樣本數據
- 5.6 路由
- 5.7 模板
- 5.8 開始編寫首頁
- 5.9 書籍詳情頁面
- 5.10 書籍列表頁面
- 5.11 書籍搜索
- 6 用戶和后臺
- 7 結語