Zend Tool Cheat Sheet

A Programming › PHP cheat sheet in English by richardjh

Zend Framework Command Line Console Tool v1.11.5

11,552 views 4,745 downloads 25 Mar 2012 History
4.9 avg · 4 ratings

Usage

zf [--glo­bal­-opts] action­-name [--act­ion­-opts] provid­er-name [--pro­vid­er-­opts] [provider parameters ...]
Note: You may use "­?" in any place of the above usage string to ask for more specific help inform­ation.

Example: "zf ? versio­n" will list all available actions for the version provider.

Version

zf show version mode[=­mini] name-i­ncl­ude­d[=1]
Note: There are specia­lties, use zf show version.? to get specific help on them.

Config

zf create config
zf show config
zf enable config
zf disable config
Note: There are specia­lties, use zf enable config.? to get specific help on them.

Note: There are specia­lties, use zf disable config.? to get specific help on them.

Projec­tPr­ovider

zf create projec­t-p­rovider name actions

Phpinfo

zf show phpinfo

Manifest

zf show manifest

Profile

zf show profile

Project

zf create project path name-o­f-p­rofile file-o­f-p­rofile
zf show project
Note: There are specia­lties, use zf show project.? to get specific help on them.

Applic­ation

zf change applic­ati­on.c­la­ss-­nam­e-p­refix class-­nam­e-p­refix

Model

zf create model name module

View

zf create view contro­lle­r-name action­-na­me-­or-­sim­ple­-name

Controller

zf create controller name index-­act­ion­-in­clu­ded[=1] module

Action

zf create action name contro­lle­r-n­ame­[=I­ndex] view-i­ncl­ude­d[=1] module

DbAdapter

zf configure db-adapter dsn sectio­n-n­ame­[=p­rod­uction]

DbTable

zf create db-table name actual­-ta­ble­-name module force-­ove­rwrite
Note: There are specia­lties, use zf create db-table.? to get specific help on them.

Form

zf enable form module
zf create form name module

Layout

zf enable layout
zf disable layout

Module

zf create module name

Badges

Nice Cheat Sheet Good Cheat Sheet Downloaded from Unusual Locations × 1

Comments

No comments yet.

Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.