+ All Categories
Home > Technology > Intro to Zend Framework

Intro to Zend Framework

Date post: 27-May-2015
Category:
Upload: chris-tankersley
View: 1,248 times
Download: 0 times
Share this document with a friend
Description:
A basic introduction to the Zend Framework
Popular Tags:
41
Zend Framework E-mail: [email protected] Twitter: @dragonmantank 05/30/2022 Northwest Ohio PHP User Group 1
Transcript
Page 1: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 1

Zend Framework

E-mail: [email protected]: @dragonmantank

Page 2: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 2

Who Am I?

Been Doing PHP for 8 Years

Lots of projects no one uses, and a few that some do

TL;DR https://github.com/dragonmantank

Page 3: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 3

What Is the Zend Framework?

Page 4: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 4

It’s Actually A Few Things

Full Stack Framework Component Library

Page 5: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 5

Page 6: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 6

Using The Components

Piece By Piece

Page 7: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 7

Pick and Choose

Page 8: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 8

Custom Packages with packageizer

http://epic.codeutopia.net/pack/

Page 9: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 9

Custom Packages with packageizer

http://epic.codeutopia.net/pack/

Page 10: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 10

Include and Enjoy

Page 11: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 11

Using EverythingSometimes We Need The Kitchen Sink

Page 12: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 12

Download and Install

http://framework.zend.com/download/latest

Page 13: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 13

What Do We Get?

Page 14: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 14

In The Box…

MVC Framework

Templating System

Database Abstraction and Interaction

Command Line

REST/SOAP Clients and Servers

API Service Interfaces

Form Generation System

Lots, lots more

Page 15: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 15

We can use this…

Independently (for the most part)

Together as a whole

Page 16: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 16

Examples!Lets look at the 1’s and 0’s

Page 17: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 17

Lets Look At The Stack

Most of the time, Zend Framework 1 will be used as a full stack

Zend Framework 2 is better designed to be used in chunks

Page 18: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 18

Such a Zend_Tool

Page 19: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 19

The Next Slide Isn’t As Scary As It Looks

Page 20: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 20

Page 21: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 21

Kicking Off The Process

Page 22: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 22

Kicking Off The Process

Page 23: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 23

Kicking Off The Process

Page 24: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 24

Kicking Off The Process

Lots of Magic

Page 25: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 25

Parts of the MagicThis Magic Is The Good Kind

Page 26: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 26

The Autoloader

Automatically finds and loads a class when invoked

Page 27: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 27

The Configuration File

Page 28: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 28

The MVC System

URI is converted into a code resourcehttp://www.myapp.com/mycontroller/myaction

Page 29: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 29

The MVC System

Determines the View to usehttp://www.myapp.com/mycontroller/myaction

Page 30: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 30

Modules, Controllers, Actions

Oh My

Page 31: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 31

How It Works

1. A URI specifies a controller and an action (and sometimes a module)

2. The system instantiates the controller, and calls the action

3. By default, the controller will render a view (HTML, XML, JSON) for the action

4. This gets displayed to the browser

Page 32: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 32

Page 33: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 33

The DatabaseI couldn’t think of a clever tagline for this one

Page 34: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 34

Zend_Db and Zend_Db_Table

Automatically maps a table to an object

Abstracts the DB

Page 35: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 35

The Templating System

PHP is a template system!

Page 36: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 36

Zend_View

Page 37: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 37

Other Advantages

Dynamic loading of CSS and JS

Layout system, so each action only worries about it’s specific content

Partials, so code can be reused (like table rows)

Can be turned off when needed

Page 38: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 38

Other Useful PiecesBecause we’re probably running out of time

Page 39: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 39

Just To Name a Few

Zend_Form for form generation and validation

Zend_Filter for filtering user input

Zend_Auth and Zend_Acl for authentication and access control

Zend_Mail for dealing with sending (and receiving!) of e-mail

Page 40: Intro to Zend Framework

04/12/2023Northwest Ohio PHP User Group 40

Questions?


Recommended