[php] symfony framework

Download [PHP] Symfony Framework

Post on 28-Nov-2014

609 views

Category:

Documents

7 download

Embed Size (px)

TRANSCRIPT

symfony book

symfony book

Table of ContentsAbout symfony.............................................................................................................................................1/282 Symfony at a glance.....................................................................................................................................2/282 Overview ...........................................................................................................................................2/282 What is a framework?.......................................................................................................................2/282 What is symfony?.............................................................................................................................2/282 Is symfony made for me? ..................................................................................................................4/282 Installing symfony........................................................................................................................................5/282 Overview ...........................................................................................................................................5/282 Introduction .......................................................................................................................................5/282 Prerequisites......................................................................................................................................5/282 The sandbox......................................................................................................................................6/282 Installing symfony from a PEAR Package.......................................................................................7/282 Getting nightly builds.......................................................................................................................8/282 Installing symfony by hand..............................................................................................................9/282 Installing symfony without command line.......................................................................................9/282 User-contributed guides..................................................................................................................10/282 Project creation and the 'symfony' command.........................................................................................11/282 Overview .........................................................................................................................................11/282 Introduction .....................................................................................................................................11/282 Pake .................................................................................................................................................12/282 Project setup ....................................................................................................................................12/282 Application Setup...........................................................................................................................13/282 Web server setup .............................................................................................................................13/282 Module setup..................................................................................................................................14/282 Source versioning...........................................................................................................................15/282 File structure explained.............................................................................................................................17/282 Overview .........................................................................................................................................17/282 Introduction .....................................................................................................................................17/282 Root tree structure ...........................................................................................................................17/282 Application tree structure ................................................................................................................18/282 Module tree structure......................................................................................................................19/282 Web tree structure...........................................................................................................................20/282 Tree structure customization ...........................................................................................................20/282 Configuration explained............................................................................................................................22/282 Overview .........................................................................................................................................22/282 Introduction .....................................................................................................................................22/282 Why YAML ?.................................................................................................................................22/282 YAML syntax and symfony conventions.......................................................................................23/282 Environments..................................................................................................................................24/282 Configuration levels ........................................................................................................................24/282 Structure..........................................................................................................................................26/282

i

symfony book

Table of ContentsConfiguration explained Access configuration from code.....................................................................................................26/282 How to add a custom setting?.........................................................................................................27/282 Scriptable configuration ..................................................................................................................27/282 Configuration handlers...................................................................................................................28/282 Wrap up ...........................................................................................................................................28/282 Configuration in practice..........................................................................................................................30/282 Overview .........................................................................................................................................30/282 Introduction .....................................................................................................................................30/282 Project configuration .......................................................................................................................30/282 Application configuration...............................................................................................................31/282 Module configuration.....................................................................................................................38/282 Multiple level configuration...........................................................................................................40/282 Browsing your own YAML file ......................................................................................................42/282 MVC implementation explained ...............................................................................................................43/282 Overview .........................................................................................................................................43/282 Concepts.........................................................................................................................................43/282 Example..........................................................................................................................................43/282 Symfony classes ..............................................................................................................................44/282 Symfony model...........................................................................................................................................45/282 Overview .........................................................................................................................................45/282 Why use an abstraction layer?........................................................................................................45/282 XML Data model............................................................................................................................46/282 Object data model files...................................................................................................................48/282 Database access configuration........................................................................................................49/282 Don't create the model twice ...........................................................................................................51/282 Data access .....................................................................