From Zero to  Zend Framework  in 10 Minutes
About Me Jeremy Kendall PHP Developer since 2001 Organizer Memphis PHP Contributor to FRAPI project (getfrapi.com) [email_...
What is the Zend Framework?
Zend Framework http://framework.zend.com <ul><li>A web application framework implemented in PHP 5.2.4+
Version 2.0 is currently in the works (PHP 5.3)
License is based on new BSD license
Allows for rapid application development
Integrates well with other frameworks
Can be used “a la carte”
Excellent documentation </li></ul>
Getting Started . . .
. . . can be a real PITA.
Maybe I'm just slow? <ul><li>I always forget some important bit of configuration
How should I organize my project?
Didn't I fix this issue last time?
WORK, DAMMIT, WORK! </li></ul>
Zend Tool to the Rescue!
Zend Tool <ul><li>CLI tooling component
Creates an MVC project with a single command
Implements best practices
Can add additional controllers, views, modules
Extensible, configurable </li></ul>
The Game Plan <ul><li>Install the Zend Framework
Get Zend Tool up and running
Upcoming SlideShare
Loading in...5
×

Zero to Zend Framework in 10 minutes

2,275

Published on

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

No Downloads
Views
Total Views
2,275
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
47
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Zero to Zend Framework in 10 minutes

  1. 1. From Zero to Zend Framework in 10 Minutes
  2. 2. About Me Jeremy Kendall PHP Developer since 2001 Organizer Memphis PHP Contributor to FRAPI project (getfrapi.com) [email_address] @JeremyKendall http://jeremykendall.net
  3. 3. What is the Zend Framework?
  4. 4. Zend Framework http://framework.zend.com <ul><li>A web application framework implemented in PHP 5.2.4+
  5. 5. Version 2.0 is currently in the works (PHP 5.3)
  6. 6. License is based on new BSD license
  7. 7. Allows for rapid application development
  8. 8. Integrates well with other frameworks
  9. 9. Can be used “a la carte”
  10. 10. Excellent documentation </li></ul>
  11. 11. Getting Started . . .
  12. 12. . . . can be a real PITA.
  13. 13. Maybe I'm just slow? <ul><li>I always forget some important bit of configuration
  14. 14. How should I organize my project?
  15. 15. Didn't I fix this issue last time?
  16. 16. WORK, DAMMIT, WORK! </li></ul>
  17. 17. Zend Tool to the Rescue!
  18. 18. Zend Tool <ul><li>CLI tooling component
  19. 19. Creates an MVC project with a single command
  20. 20. Implements best practices
  21. 21. Can add additional controllers, views, modules
  22. 22. Extensible, configurable </li></ul>
  23. 23. The Game Plan <ul><li>Install the Zend Framework
  24. 24. Get Zend Tool up and running
  25. 25. Create a new Zend Framework Project
  26. 26. Create a virtual host
  27. 27. Celebrate victory! </li></ul>
  28. 28. Assumptions <ul><li>Ubuntu (*nix)
  29. 29. PHP 5 (at least 5.2.4)
  30. 30. Apache with mod_rewrite </li></ul>
  31. 31. Installing the Zend Framework <ul><li>As easy as downloading and extracting </li><ul><li>Download the full version! </li></ul><li>Can also checkout or export from SVN
  32. 32. Install to directory named for the ZF version
  33. 33. My install directory is: ~/phplib/ZendFramework-1.10.6
  34. 34. Tip: symlink the install folder to Zend </li><ul><li>ln -s ZendFramework-<ver> Zend </li></ul></ul>
  35. 35. Get Zend Tool Running <ul><li>Multiple methods </li><ul><li>Install via PEAR
  36. 36. Place ZF on include path
  37. 37. Link from include path to zf.sh </li></ul><li>My favorite is a bash alias </li><ul><li>zf='/home/jkendall/phplib/Zend/bin/zf.sh' </li></ul><li>Test with zf --help </li></ul>
  38. 38. Create a new ZF Project <ul><li>cd into your www root (I use ~/public_html)
  39. 39. zf create project ZeroToZF
  40. 40. Done! </li></ul>
  41. 41. Create your vhost <ul><li>Your new ZF project requires a vhost
  42. 42. Use the example vhost from ZeroToZf/docs/README
  43. 43. cd into /etc/apache2/sites-available
  44. 44. gksudo gedit ZeroToZf.local
  45. 45. Copy vhost from README
  46. 46. sudo a2ensite ZeroToZf.local </li></ul>
  47. 47. Create your vhost <ul><li>gksudo gedit /etc/hosts
  48. 48. Add 127.0.0.1 zerotozf.local
  49. 49. sudo /etc/init.d/apache2 reload
  50. 50. Success? </li></ul>
  51. 51. http://zerotozf.local
  52. 52. Oops <ul><li>Zend Tool creates a new project
  53. 53. Zend Tool does not include the framework in your new project
  54. 54. Copy ZendFramework-<ver>/library/Zend into ZeroToZf/library
  55. 55. Full path to Zend Log should be:
  56. 56. ZeroToZf/library/Zend/Log.php </li></ul>
  57. 57. http://zerotozf.local
  58. 58. Woohoo!
  59. 59. We now have a functional Zend Framework project . . .
  60. 60. . . . that does absolutely nothing.
  61. 61. What Now? <ul><li>Check out “Getting Started with Zend Framework” </li><ul><li>http://akrabat.com/zend-framework-tutorial/ </li></ul><li>RTFM </li><ul><li>http://framework.zend.com/manual/en/ </li></ul><li>Zend Framework Forum </li><ul><li>http://bit.ly/ZFnabble </li></ul><li>IRC </li><ul><li>#zftalk on Freenode </li></ul></ul>
  62. 62. Thanks! <ul>Blog post: http://bit.ly/ZeroToZf [email_address] @JeremyKendall http://jeremykendall.net </ul>
  1. A particular slide catching your eye?

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

×