Creare un blog in Symfony2¶
Introduzione¶
Questo tutorial vi guiderà alla realizzazione di un blog usando Symfony2. Sarà usata la distribuzione standar di Sy2,, la quale comprende i principali componenti di cui avrai bisogno per costruire i tuoi web site.Il tutorial è divisoin capitoli ed ogni capitolo copre i differenti aspetti principali di Sy2 e i suoi componenti.Questo tutorial ha lo scopo di essere elaborato simile al tutorial Jobeet di Sy1..
Parti del tutorial¶
- [Part 1] - Symfony2 Configuration and Templating
- [Part 2] - Contact Page: Validators, Forms and Emailing
- [Part 3] - The Blog Model: Using Doctrine 2 and Data Fixtures
- [Part 4] - The Comments Model: Adding comments, Doctrine Repositories and Migrations
- [Part 5] - Customising the view: Twig extensions, The sidebar and Assetic
- [Part 6] - Testing: Unit and Functional with PHPUnit
Demo Website¶
Symblog demo web site può essere visto qui http://symblog.co.uk.Una variazione su http://enricoblog.eu5.org.Il codice sorgente è disponibile su Github.
Argomenti trattati¶
Questo tutorial ha lo scopo di coprire i compiti più comuni che vi troverete di fronte sviluppando un sito con Symfony2.
- Bundles
- Controllers
- Templating (Using TWIG)
- Model - Doctrine 2
- Migrations
- Data Fixtures
- Validators
- Forms
- Routing
- Asset Management
- Emailing
- Environments
- Customising Error pages
- Security
- The User & Sessions
- CRUD Generation
- Caching
- Testing
- Deployment
Symfony2 è personalizzabile e fornisce vari modi per sviluppare i vari compiti.Un esempio è che include la scrittura della configurazione in YAML, XML, PHP, o Annotation, e si possono creare tempating usando Twig o PHP. In questo tutorial noi useremo YAML e Annotations per la configurazione e Twig per i templating. Symfony book è una grande risorsa (ora tradotto anche in italiano) per esempi e di come di possono usare altri metodi per lo sviluppo. Se altre persone hanno il piacere di contribuire per altri medodi possono :fork the repository on Github and send over the pull requests :)
Traduzioni¶
Questa è la traduzione in italiano del sito originale tutorial.symblog.co.uk
Contributing¶
The source for this tutorial is available on Github. If you would like to improve and extend this tutorial simply fork the project and send over the pull requests. You can also raise issues using the GitHub Issue Tracker. If any one is interested in creating a much more visually pleasing design please get in touch!
Already a Symfony2 Expert?¶
Do you already know Symfony2 and want to work with it everyday? Are you an expert with PHP, and know how to use JavaScript to build amazing web applications? DeskPRO currently has a number of vacancies for PHP and Symfony2 developers. Check out the Jobs page at DeskPRO for more information.
Credits¶
Special thanks to all the contributors of the Official Symfony2 documentation. This provided an invaluable resource of information.
Flag Icons sourced from famfamfam.
Searching¶
Looking for a specific topic? Use the Search Page.