synapseindia php development presenation on zend framework quick start

Download Synapseindia php development presenation on zend framework quick start

If you can't read please download the document

Upload: apps

Post on 07-Apr-2016

217 views

Category:

Documents


2 download

DESCRIPTION

 

TRANSCRIPT

SynapseIndia PHP Development- Presenation On zend framework quick start

Zend Framework Quick start

Zend Framework quick start
Design patternsMVC design patternsDirectory StructureBootstrapHello world example

Design patterns
adesign patternis a general reusable solution to a commonly occurring problem in software design.(en.wikipedia.org/wiki/Design_pattern_(computer_science))

MVC design patterns
Model-View-Controller (MVC) is a designpattern that simplifies applicationdevelopment and maintenance.Model: Responsible for the business logic of an application View: Typically what would be considered web design, or templating.Controller: The controller layer glues everything together.

Directory structure

Bootstrap (index.php)

Hello world with ZF MVC
We have done basic configuration.It time to have fun.In your application/controllers/IndexController.php

Hello world cont
Next in your application/views/Create views/index/index.phtmlAnd write

Hello world..


Using Models
In application/modelsWrite

Model cont..
Now in controller, write


Example cont
And finally in your view(application/view/scripts/index/index.phtml)Write,

Thanks
Next..Two step viewZend_Db_ConfigurationAnd many more..