Your SlideShare is downloading. ×
0
workshop

         Ibuildings Presentation



                                 Ibuildings
                            The ...
What will we do?

 •   Symfony installation
 •   A short overview into the symfony structure
 •   An introduction in the s...
Symfony installation

 • We won’t do it, I’ll just tell about it ;)
 • PEAR
        pear channel-discover pear.symfony-pr...
Symfony structure




 Monday, December 10, 2007   4
Symfony structure

 • Project
           global entity
       
           holds everything
       
           most of th...
Symfony CLI

 • Your development friend
 • Automates boring tasks like
           initializing your project
       
     ...
Symfony CLI




 Monday, December 10, 2007   7
Symfony CLI

 • Most important beginner commands
           symfony           init-project / symfony new
       
        ...
YAML

 • YAML Ain't Markup Language
 • Simple, readable text format
 • Used widely in symfony for configuration




 Monda...
Creating your database

 • Database schema is defined in YML
        config/schema.yml




 Monday, December 10, 2007    ...
Creating your database

 •   Ensure settings in config/propel.ini are correct
 •   symfony propel-build-model
 •   symfony...
Creating a simple frontend

 • Creating an empty module
        symfony init-module frontend simple
 • Creating a CRUD mo...
Creating a simple backend

 • symfony propel-init-admin <app> <module>
   <model>
 • symfony propel-init-admin backend web...
That’s it for the overview

 • Now go to work!




             source: http://www.flickr.com/photos/bobjagendorf/86120479/...
Upcoming SlideShare
Loading in...5
×

Symfony workshop introductory slides

3,401

Published on

These slides only form a short theoretical introduction for a workshop I gave.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
3,401
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
64
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Symfony workshop introductory slides"

  1. 1. workshop Ibuildings Presentation Ibuildings The PHP Professionals www.ibuildings.nl +31 118 429 550 info@ibuildings.nl Ibuildings Version 10
  2. 2. What will we do? • Symfony installation • A short overview into the symfony structure • An introduction in the symfony CLI • Database model creation without phpMyAdmin • Creating a simple front-end • Creating a simple admin interface • Any questions... just ask! Monday, December 10, 2007 2
  3. 3. Symfony installation • We won’t do it, I’ll just tell about it ;) • PEAR  pear channel-discover pear.symfony-project.com  pear install symfony/symfony • SVN  checkout  externals • Sandbox - no central installation Monday, December 10, 2007 3
  4. 4. Symfony structure Monday, December 10, 2007 4
  5. 5. Symfony structure • Project global entity  holds everything  most of this outside the document root  web/ directory should be document root  • Application  Slightly less global entity  A group of modules that together form an app  Most common use: frontend and backend • Module  Specific functionality, mostly around one data entity  For instance: “post” for the weblog post, “comment” for comments to a weblog post  But data might mix... comments to a post Monday, December 10, 2007 5
  6. 6. Symfony CLI • Your development friend • Automates boring tasks like initializing your project  initializing applications and modules  writing models  altering models to reflect schema changes  writing full administration interface  writing basic (CRUD) actions  deployment of your application  Monday, December 10, 2007 6
  7. 7. Symfony CLI Monday, December 10, 2007 7
  8. 8. Symfony CLI • Most important beginner commands symfony init-project / symfony new  symfony init-app / symfony app  symfony propel-build-model  symfony propel-build-sql / symfony propel-insert-sql  symfony propel-generate-crud  symfony init-module  symfony propel-init-admin  • And slightly further ahead  symfony plugin-install  symfony freeze  symfony sync Monday, December 10, 2007 8
  9. 9. YAML • YAML Ain't Markup Language • Simple, readable text format • Used widely in symfony for configuration Monday, December 10, 2007 9
  10. 10. Creating your database • Database schema is defined in YML  config/schema.yml Monday, December 10, 2007 10
  11. 11. Creating your database • Ensure settings in config/propel.ini are correct • symfony propel-build-model • symfony propel-build-sql • symfony propel-insert-sql • or: symfony-propel-build-all • Configuring for your app:  config/databases.yml Monday, December 10, 2007 11
  12. 12. Creating a simple frontend • Creating an empty module  symfony init-module frontend simple • Creating a CRUD module  symfony propel-generate-crud <app> <module> <model>  symfony propel-generate-crud frontend weblog Weblog • Now you have your basic functionality  But you won’t need everything • visitors need not delete posts • visitors need not create posts (well, usually...)  So... refactoring Monday, December 10, 2007 12
  13. 13. Creating a simple backend • symfony propel-init-admin <app> <module> <model> • symfony propel-init-admin backend weblog Weblog • Module seems empty, but contains all usual admin functionality • Still very flexible, with configuration: generator.yml Monday, December 10, 2007 13
  14. 14. That’s it for the overview • Now go to work! source: http://www.flickr.com/photos/bobjagendorf/86120479/ - license: CC Attribution-No Derivative Works 2.0 Generic Monday, December 10, 2007 14
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×