Upload
ajinkya-n
View
404
Download
1
Embed Size (px)
Citation preview
Zend FrameworkMeetup
Date: 5/1/2014 Event Host – Ajinkya Organizers – Aditya, Santosh, Vinay, Vikas &
Uday. Link:
http://www.meetup.com/PHP-Jagruti-Meetup-Group/events/155337902/
Venue - Nigdi, Pune.
About Me• Ajinkya Nahar• Professional PHP Consultant • LAMP Experience – 9 years +• Zend Certified Engineer –PHP 5.3 & ZF • LinkedIn - http://linkedin.com/pub/ajinkya-nahar/8/404/77b• Twitter - @ajinkyanahar
Agenda
MVC Introduction. Why Zend Framework? Comparison of Zend Framework 1.x and
Zend Framework 2.x Walk through of Major Zend Framework
Components. References
MVC MVC stands for Model View Controller Design
Pattern. Model contains the Business/Domain Logic
and Database Abstraction. Controller routes the requests to & fro
between View and Models. Different components in an ZF MVC
application are Routes, Front Controllers, Action Controllers, preDispatcher, postDispatcher, Models, Action/View Helpers, Components, Configuration, Partials, Views, Layouts.
Why Zend Framework? It uses PHP 5 to its full advantage. Everything is in the box. It has a modern object oriented design. It has full documentation and support. Development is simple & rapid. It has lot of in-built high quality
components including module support. Easy to learn. Internationalization support.
zf1 v/s zf2 New MVC architecture based on events We have namespaces support as PHP v5.3
minimum. e.g. Zend_Controller_Action is replaced by use Zend\Mvc\Controller\AbstractActionController;
The design of Zend Framework 2 is done with "design by contract" which means you rely on interfaces rather than classes.
New packaging system, based on Composer to download and install - PHP dependencies and autoloading.
A powerful module management system.
Zend Framework Components
Core: Zend_Controller Zend_View, Zend_Layout Zend_Db Zend_Config Zend_Filter & Zend_Valdiate Zend_Registry, Zend_Uri
Authentication and Access: Zend_Acl Zend_Auth Zend_Session
Internationalization: Zend_Date, Zend_Currency Zend_Locale, Zend_Translate
Http: Zend_Http_Client Zend_Http_Server Zend_Uri
Inter-application communication: Zend_Json Zend_XmlRpc Zend_Soap Zend_Rest
Web Services: Zend_Feed Zend_Gdata Zend_Service_Amazon Zend_Service_Flickr Zend_Service_Yahoo
Utility: Zend_Cache Zend_Search Zend_Pdf Zend_Mail / Zend_Mime
Misc! Zend_Measure
Zend Framework 2 Concepts
Dependency Injection. Service Manager. Event Manager. Routing – rewritten. Zend View – rewritten. Zend Db – rewritten. Zend Form – Decorators no longer exists,
Zend Filters, Validations are re-written for better understanding.
References
Code – Zend Framework library Code.
Books – Zend Framework In Action by Rob Allen
Websites – http://akrabat.com http://framework.zend.com/ http://www.zend.com/en/resources/ http://
www.zend.com/en/webinar/Framework/70170000000bwrT-ZF1forZF2Developers-20130226.flv
THANK YOU!