Your SlideShare is downloading. ×
0
Zero to Zend Framework in 10 minutes
Zero to Zend Framework in 10 minutes
Zero to Zend Framework in 10 minutes
Zero to Zend Framework in 10 minutes
Zero to Zend Framework in 10 minutes
Zero to Zend Framework in 10 minutes
Zero to Zend Framework in 10 minutes
Zero to Zend Framework in 10 minutes
Zero to Zend Framework in 10 minutes
Zero to Zend Framework in 10 minutes
Zero to Zend Framework in 10 minutes
Zero to Zend Framework in 10 minutes
Zero to Zend Framework in 10 minutes
Zero to Zend Framework in 10 minutes
Zero to Zend Framework in 10 minutes
Zero to Zend Framework in 10 minutes
Zero to Zend Framework in 10 minutes
Zero to Zend Framework in 10 minutes
Zero to Zend Framework in 10 minutes
Zero to Zend Framework in 10 minutes
Zero to Zend Framework in 10 minutes
Zero to Zend Framework in 10 minutes
Zero to Zend Framework in 10 minutes
Zero to Zend Framework in 10 minutes
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Zero to Zend Framework in 10 minutes

2,252

Published on

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

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

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

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

×