24
`Q 1Q Mahiti Infotech Starting the learning curve with Open Source Web Technologies Php-mysql Smarty Zend-Framework GoogleGears

Introduction to Zend Framework

Embed Size (px)

Citation preview

Page 1: Introduction to Zend Framework

`Q 1Q Mahiti Infotech

Starting the learning curvewith

Open Source Web Technologies

Php-mysqlSmarty

Zend-FrameworkGoogleGears

Page 2: Introduction to Zend Framework

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

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

Zend components Classification

Page 5: Introduction to Zend Framework

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

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

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

MVC Flow

Page 9: Introduction to Zend Framework

Zend-framework Anatomy

• Top level Directories

• Application

• Library

• Public

• tests

Page 10: Introduction to Zend Framework

Zend bootstrap File

Page 11: Introduction to Zend Framework
Page 12: Introduction to Zend Framework

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

Text

Offline Architecture

Page 14: Introduction to Zend Framework

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

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

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

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

DataBase

Open source SQLite Database

Simplified SQL Syntax

Full-text Search

Page 19: Introduction to Zend Framework

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

Example

Page 21: Introduction to Zend Framework

Example

Page 22: Introduction to Zend Framework

Applications

Gmail

Calendar

Maps

SpreadSheet

Reader

Google Gears

Docs

Page 23: Introduction to Zend Framework

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

Presentation By : -

Srishti Sethi

C.S.E (4th year )