SlideShare a Scribd company logo
Getting Up & Running with
Agenda

• Overview
• MVC
• Components
• Environment setup
• Your first Zend Framework project
• Resources
• QA
What is framework ?


• Toolbox
• Blueprint
• Skeleton
Why Zend Framework

•Maintain by PHP Company
•Open Source
•Flexible Architecture
• ZF Certification
•Partner with
Zend Framework – Architecture

• MVC design pattern
• Front Controller pattern
• Component Based
• Loosely couple
Zend Components


                    Zend_Validate

                    Zend_Auth
Zend_Acl
  ZEND_FORM     Zend_Session
Zend web services – Components




                                 ZEND_GDATA
                                 ZEND_FEED
Environment Setup



• Requirements
   1.   PHP 5.x
   2.   Web server with mod_rewrite enabled
Environment Setup (Continued…)

• Zend tool setup (Ubuntu way)

       sudo apt-get install zend-framework


       ; include_path=${include_path} “:/path/to/libzend-
       framework-php”
       // uncomment in /etc/php5/conf.d/zend-
       framework.ini
Environment Setup (Continued…)

• Zend tool setup (Windows way)
Environment Setup (Continued…)
Environment Setup (Continued…)
Environment Setup (Continued…)
Environment Setup (Continued…)
Environment Setup (Continued…)


• Zend tool setup verification



   zf show version
           Zend Framework Version: 1.11.10
Your first Zend Framework project




zf create project {project-name}
Your first Zend Framework project
Project structure
Create Virtual host


<VirtualHost *:80>
       ServerName local.sitename.com
       DocumentRoot /var/www/zf-project/public
       <Directory "/var/www/zf-project/public">
              AllowOverride All
       </Directory>
</VirtualHost>
Tada!
Connecting to database



resources.db.adapter = "Pdo_Mysql”
resources.db.params.host = ”HostName"
resources.db.params.username = ”UserName"
resources.db.params.password = ”Password"
resources.db.params.dbname = ”DbName"
Let’s have a CRUD operation




Create
Retrieve
Update
Delete
Controller




zf create controller {name}
Controller

<?php
class AlbumController extends Zend_Controller_Action{
    public function init(){
        /* Initialize action controller here */
    }
    public function indexAction(){
           /* Your code goes here */
    }
}
Model




zf create model {model-name}
Model

<?php
class Application_Model_Albums extends Zend_Db_Table_Abstract
{
   protected $_name = 'albums';

    public function fName() {
          /* Your code goes here */
    }
}
Crud operation

           public function addAlbum($data) {
                     $this->insert($data);
           }

           public function updateAlbum($data, $where) {
                     $this->update($data, $where);
           }

           public function deleteAlbum($where) {
                     $this->delete($where);
           }
Zend Frameworks Gems 


• Web services
   1.   Google
   2.   Amazon
   3.   Flickr
   4.   Yahoo
   5.   More….
Zend web service (flickr)
Zend web service (flickr)




public function flickrAction(){
     $flickr = new Zend_Service_Flickr(’YourAPIKey');
     $this->view->results = $flickr->tagSearch('worldcup’);
}
Zend web service (flickr)


<ul>
  <?php foreach ($this->results as $result){
        $photo = $result->Square; ?>
        <li><a href="<?php echo $photo->ClickUri ?>">
                  <img src="<?php echo $photo->uri ?>" alt="image"/>
             </a>
        </li>
  <?php } ?>
</ul>
Resources




•   http://akrabat.com/zend-framework-tutorial/
•   http://net.tutsplus.com/tutorials/php/zend-framework-from-scratch/
•   http://goo.gl/fQLL6
Who we are


Saidur Rahman Bijon   Shoriful Islam Ronju
     @somewherein                  @leevio
Questions & Answers




   Any Question?

More Related Content

PDF
Assetic (Symfony Live Paris)
PDF
Head First Zend Framework - Part 1 Project & Application
PDF
ZendFramework2 & Symfony2
KEY
Deploying
PPTX
Node.js Express
PDF
Introducing Assetic: Asset Management for PHP 5.3
PDF
Connecting Content Silos: One CMS, Many Sites With The WordPress REST API
Assetic (Symfony Live Paris)
Head First Zend Framework - Part 1 Project & Application
ZendFramework2 & Symfony2
Deploying
Node.js Express
Introducing Assetic: Asset Management for PHP 5.3
Connecting Content Silos: One CMS, Many Sites With The WordPress REST API

What's hot (19)

PDF
Using the new WordPress REST API
PDF
Mojolicious. Веб в коробке!
PDF
深入淺出 MVC
KEY
Mojolicious - A new hope
PDF
Assetic (Zendcon)
PPTX
Building Web Apps with Express
PPTX
Reusable bootstrap resources zend con 2010
PDF
I use drupal / 我是 OO 師,我用 Drupal
KEY
CodeIgniter 3.0
PDF
Mojolicious: what works and what doesn't
PDF
Mojolicious
PDF
Mojolicious, real-time web framework
PPT
Dance for the puppet master: G6 Tech Talk
PPTX
Mojolicious - Perl Framework for the Real-Time Web (Lightning Talk)
PDF
Assetic (OSCON)
PPT
Presentation
PDF
Caldera Learn - LoopConf WP API + Angular FTW Workshop
ODP
Mojolicious on Steroids
PPT
Using the new WordPress REST API
Mojolicious. Веб в коробке!
深入淺出 MVC
Mojolicious - A new hope
Assetic (Zendcon)
Building Web Apps with Express
Reusable bootstrap resources zend con 2010
I use drupal / 我是 OO 師,我用 Drupal
CodeIgniter 3.0
Mojolicious: what works and what doesn't
Mojolicious
Mojolicious, real-time web framework
Dance for the puppet master: G6 Tech Talk
Mojolicious - Perl Framework for the Real-Time Web (Lightning Talk)
Assetic (OSCON)
Presentation
Caldera Learn - LoopConf WP API + Angular FTW Workshop
Mojolicious on Steroids
Ad

Similar to Getting up & running with zend framework (20)

PPTX
Web application development using zend framework
PDF
Building Web Applications with Zend Framework
KEY
Extending ZF & Extending With ZF
PPT
PPT
Greenathan
PPT
Greenathan
PPT
PPT
PPT
werwer
PPT
PPT
PPT
sdfsdf
PPT
PPT
Zend Framework Introduction
PPT
PPT
scenary
PPT
Greenathan
PPT
eco friendly
PPT
Unit Test for ZF SlideShare Component
Web application development using zend framework
Building Web Applications with Zend Framework
Extending ZF & Extending With ZF
Greenathan
Greenathan
werwer
sdfsdf
Zend Framework Introduction
scenary
Greenathan
eco friendly
Unit Test for ZF SlideShare Component
Ad

Recently uploaded (20)

PDF
Approach and Philosophy of On baking technology
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
KodekX | Application Modernization Development
PPTX
Cloud computing and distributed systems.
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
Approach and Philosophy of On baking technology
Per capita expenditure prediction using model stacking based on satellite ima...
The AUB Centre for AI in Media Proposal.docx
Programs and apps: productivity, graphics, security and other tools
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
KodekX | Application Modernization Development
Cloud computing and distributed systems.
“AI and Expert System Decision Support & Business Intelligence Systems”
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Reach Out and Touch Someone: Haptics and Empathic Computing
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
NewMind AI Weekly Chronicles - August'25 Week I
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Chapter 3 Spatial Domain Image Processing.pdf
Building Integrated photovoltaic BIPV_UPV.pdf

Getting up & running with zend framework

Editor's Notes

  • #10: Zend tool setup for linuxand windows
  • #11: Zend tool setup for linuxand windows
  • #12: Zend tool setup for linuxand windows
  • #13: Zend tool setup for linuxand windows
  • #14: Zend tool setup for linuxand windows
  • #15: Zend tool setup for linuxand windows
  • #16: Zend tool setup for linuxand windows