24
`Q 1Q Starting the learning curve with Open Source Web Technologies Zend-Framework GoogleGears

Open Source Web Technologies

Embed Size (px)

DESCRIPTION

Presentation on Zend-Framework for php & Google Gears

Citation preview

Page 1: Open Source Web Technologies

`Q 1Q

Starting the learning curvewith

Open Source Web TechnologiesZend-Framework

GoogleGears

Page 2: Open Source Web Technologies

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: Open Source Web Technologies

Key Features

Simplicity

Maintainability & extensibility-->reusing components .

Fully Documented . Simple & rapid development ..Follows MVC pattern .

Showcase Current Trends

Web ServicesAjaxSearch

Page 4: Open Source Web Technologies

Zend components Classification

Page 5: Open Source Web Technologies

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: Open Source Web Technologies

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: Open Source Web Technologies

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: Open Source Web Technologies

MVC Flow

Page 9: Open Source Web Technologies

Zend-framework Anatomy

• Top level Directories

• Application

• Library

• Public

• tests

Page 10: Open Source Web Technologies

Zend bootstrap File

Page 11: Open Source Web Technologies
Page 12: Open Source Web Technologies

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

Page 13: Open Source Web Technologies

Text

Offline Architecture

Page 14: Open Source Web Technologies

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: Open Source Web Technologies

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: Open Source Web Technologies

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: Open Source Web Technologies

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: Open Source Web Technologies

DataBase

Open source SQLite Database

Simplified SQL Syntax

Full-text Search

Page 19: Open Source Web Technologies

Workerpool

Time-intensive processes can be run in the background

UI stays responsive/browser doesn’t block No warning dialog “Unresponsive Script”

Page 20: Open Source Web Technologies

Example

Page 21: Open Source Web Technologies

Example

Page 22: Open Source Web Technologies

Applications

Gmail

Calendar

Maps

SpreadSheet

Reader

Google Gears

Docs

Page 23: Open Source Web Technologies

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: Open Source Web Technologies