introduction to zend framework
TRANSCRIPT
![Page 1: Introduction to Zend Framework](https://reader033.vdocument.in/reader033/viewer/2022052412/5589c023d8b42a5f498b45a5/html5/thumbnails/1.jpg)
`Q 1Q Mahiti Infotech
Starting the learning curvewith
Open Source Web Technologies
Php-mysqlSmarty
Zend-FrameworkGoogleGears
![Page 2: Introduction to Zend Framework](https://reader033.vdocument.in/reader033/viewer/2022052412/5589c023d8b42a5f498b45a5/html5/thumbnails/2.jpg)
Zend FrameWork
•Zend Framework is an open source object oriented web application framework impelmented in PHP5.
•This frameworks seeks to promote web developement best practices among the php community
•Zend provides Zend engine for PHP for free
![Page 3: Introduction to Zend Framework](https://reader033.vdocument.in/reader033/viewer/2022052412/5589c023d8b42a5f498b45a5/html5/thumbnails/3.jpg)
Key Features
Simplicity
Maintainability & extensibility-->reusing components .
Fully Documented . Simple & rapid development ..Follows MVC pattern .
Showcase Current Trends
Web ServicesAjaxSearch
![Page 4: Introduction to Zend Framework](https://reader033.vdocument.in/reader033/viewer/2022052412/5589c023d8b42a5f498b45a5/html5/thumbnails/4.jpg)
Zend components Classification
![Page 5: Introduction to Zend Framework](https://reader033.vdocument.in/reader033/viewer/2022052412/5589c023d8b42a5f498b45a5/html5/thumbnails/5.jpg)
Zend Framework Installation
• Switch to user Sudo apt-get install zend-framework
Add to include_path in php.ini file– php_value include_path
'.:/usr/share/php/libzend-framework-php'
cd /var/www/ – Test on command line– Zf create project Places
![Page 6: Introduction to Zend Framework](https://reader033.vdocument.in/reader033/viewer/2022052412/5589c023d8b42a5f498b45a5/html5/thumbnails/6.jpg)
What is MVC?Model : The ”stuff” you are using in the application
data, web services, feeds etc.View: The display returned to the userController : Manages the request & determines whathappens
![Page 7: Introduction to Zend Framework](https://reader033.vdocument.in/reader033/viewer/2022052412/5589c023d8b42a5f498b45a5/html5/thumbnails/7.jpg)
User toThe view
ControllerModel
databaseView to the
user
User Enters in the form
Controller directs to db
Db searches out
Finds the reqd. And sends back the data
MVC module in real time
![Page 8: Introduction to Zend Framework](https://reader033.vdocument.in/reader033/viewer/2022052412/5589c023d8b42a5f498b45a5/html5/thumbnails/8.jpg)
MVC Flow
![Page 9: Introduction to Zend Framework](https://reader033.vdocument.in/reader033/viewer/2022052412/5589c023d8b42a5f498b45a5/html5/thumbnails/9.jpg)
Zend-framework Anatomy
• Top level Directories
• Application
• Library
• Public
• tests
![Page 10: Introduction to Zend Framework](https://reader033.vdocument.in/reader033/viewer/2022052412/5589c023d8b42a5f498b45a5/html5/thumbnails/10.jpg)
Zend bootstrap File
![Page 11: Introduction to Zend Framework](https://reader033.vdocument.in/reader033/viewer/2022052412/5589c023d8b42a5f498b45a5/html5/thumbnails/11.jpg)
![Page 12: Introduction to Zend Framework](https://reader033.vdocument.in/reader033/viewer/2022052412/5589c023d8b42a5f498b45a5/html5/thumbnails/12.jpg)
From Online to Offline
Browser – plugin CostOpen SourceLightweight installation necessaryApplication stays completely in the browser, no extra app/start up
Offline are also NecessaryInternet unavailable?Don’t want the data in the clouds?Response time?
Fill the gaps between online and offline
![Page 13: Introduction to Zend Framework](https://reader033.vdocument.in/reader033/viewer/2022052412/5589c023d8b42a5f498b45a5/html5/thumbnails/13.jpg)
Text
Offline Architecture
![Page 14: Introduction to Zend Framework](https://reader033.vdocument.in/reader033/viewer/2022052412/5589c023d8b42a5f498b45a5/html5/thumbnails/14.jpg)
Offline Tools
In the past Dojo Storage, Derby/JavaDB, Zimbra
Today Adobe AIR Google Gears Microsoft Silverlight
Coming Soon FireFox 3 HTML5 Working Draft Client-side database storage
![Page 15: Introduction to Zend Framework](https://reader033.vdocument.in/reader033/viewer/2022052412/5589c023d8b42a5f498b45a5/html5/thumbnails/15.jpg)
Detecting & Installing Gears
<script src="gears_init.js"></script>
<script>
if (!window.google || !google.gears) {
location.href = "http://gears.google.com/?action=install&message=<your welcome message>" +
"&return=<your website url>";
}
</script>
![Page 16: Introduction to Zend Framework](https://reader033.vdocument.in/reader033/viewer/2022052412/5589c023d8b42a5f498b45a5/html5/thumbnails/16.jpg)
Components
Local SeverLet web applications interact naturally with your desktop
DatabaseStore data locally in a fully-searchable database
WorkerPoolRun JavaScript in the background to improve performance
![Page 17: Introduction to Zend Framework](https://reader033.vdocument.in/reader033/viewer/2022052412/5589c023d8b42a5f498b45a5/html5/thumbnails/17.jpg)
LocalServer
Specialized URL Cache Requests for URLs in the LocalServer’s cache are intercepted
and served locally from the user’s disk
RecourseStore (Manual Update)
ManagedResourceStore
(Automatic Update)
Manifest File
![Page 18: Introduction to Zend Framework](https://reader033.vdocument.in/reader033/viewer/2022052412/5589c023d8b42a5f498b45a5/html5/thumbnails/18.jpg)
DataBase
Open source SQLite Database
Simplified SQL Syntax
Full-text Search
![Page 19: Introduction to Zend Framework](https://reader033.vdocument.in/reader033/viewer/2022052412/5589c023d8b42a5f498b45a5/html5/thumbnails/19.jpg)
Workerpool
Time-intensive processes can be run in the background
UI stays responsive/browser doesn’t block
No warning dialog “Unresponsive Script”
![Page 20: Introduction to Zend Framework](https://reader033.vdocument.in/reader033/viewer/2022052412/5589c023d8b42a5f498b45a5/html5/thumbnails/20.jpg)
Example
![Page 21: Introduction to Zend Framework](https://reader033.vdocument.in/reader033/viewer/2022052412/5589c023d8b42a5f498b45a5/html5/thumbnails/21.jpg)
Example
![Page 22: Introduction to Zend Framework](https://reader033.vdocument.in/reader033/viewer/2022052412/5589c023d8b42a5f498b45a5/html5/thumbnails/22.jpg)
Applications
Gmail
Calendar
Maps
SpreadSheet
Reader
Google Gears
Docs
![Page 23: Introduction to Zend Framework](https://reader033.vdocument.in/reader033/viewer/2022052412/5589c023d8b42a5f498b45a5/html5/thumbnails/23.jpg)
Conclusions
It opens a lot of doors to developers looking to bridge the narrowing gap between desktop and web-based applications. Google Gears is an open source plugin that aims to push the Web forward• The components are simple to use
• You need to think about your architecture
http://code.google.com/apis/gears/
http://gears.google.com/
Thanks for your time : )
![Page 24: Introduction to Zend Framework](https://reader033.vdocument.in/reader033/viewer/2022052412/5589c023d8b42a5f498b45a5/html5/thumbnails/24.jpg)
Presentation By : -
Srishti Sethi
C.S.E (4th year )