To setup zend on ubuntu 13.10(my version)
We need to download its latest framework from
http://www.zend.com/en/company/community/downloads
Zend 1.12.5 is latest as of writing this post
Next unzip and place the same in your home directory and delete all folders except bin and library
Next we need to tell our php to include Zend library so in our php.ini
(found in /etc/php5/apache2/php.ini)
perform following actions
Add
include_path=".:/home/gaurav/ZendFramework-1.12.5/library"
if you find include_path not used or
Append "/home/gaurav/ZendFramework-1.12.5/library" to current path if include_path is defined (check it's commented by default)
Save and Close
Next move to root and using root privileges(sudo)
We need to download its latest framework from
http://www.zend.com/en/company/community/downloads
Zend 1.12.5 is latest as of writing this post
Next unzip and place the same in your home directory and delete all folders except bin and library
Next we need to tell our php to include Zend library so in our php.ini
(found in /etc/php5/apache2/php.ini)
perform following actions
Add
include_path=".:/home/gaurav/ZendFramework-1.12.5/library"
if you find include_path not used or
Append "/home/gaurav/ZendFramework-1.12.5/library" to current path if include_path is defined (check it's commented by default)
Save and Close
Next move to root and using root privileges(sudo)
create a file
cd /
nano .bashrc
and add code
"alias zf=/home/gaurav/ZendFramework-1.12.5/bin/zf.sh"
Save and exit
Next Source .bashrc by following command
"source .bashrc"
now run zf command
If you get an output as follows
 An Error Has Occurred                         
 An action and provider is required.                                    
Zend Framework Command Line Console Tool v1.12.4
Usage:
    zf [--global-opts] action-name [--action-opts] provider-name [--provider-opts] [provider parameters ...]
    Note: You may use "?" in any place of the above usage string to ask for more specific help information.
    Example: "zf ? version" will list all available actions for the version provider.
Providers and their actions:
  Version
    zf show version mode[=mini] name-included[=1]
    Note: There are specialties, use zf show version.? to get specific help on them.
  Config
    zf create config
    zf show config
    zf enable config
    Note: There are specialties, use zf enable config.? to get specific help on them.
    zf disable config
    Note: There are specialties, use zf disable config.? to get specific help on them.
  Phpinfo
    zf show phpinfo
  Manifest
    zf show manifest
  Profile
    zf show profile
  Project
    zf create project path name-of-profile file-of-profile
    zf show project
    Note: There are specialties, use zf show project.? to get specific help on them.
  Application
    zf change application.class-name-prefix class-name-prefix
  Model
    zf create model name module
  View
    zf create view controller-name action-name-or-simple-name module
  Controller
    zf create controller name index-action-included[=1] module
  Action
    zf create action name controller-name[=Index] view-included[=1] module
  Module
    zf create module name
  Form
    zf enable form module
    zf create form name module
  Layout
    zf enable layout
    zf disable layout
  DbAdapter
    zf configure db-adapter dsn section-name[=production]
  DbTable
    zf create db-table name actual-table-name module force-overwrite
    Note: There are specialties, use zf create db-table.? to get specific help on them.
  ProjectProvider
    zf create project-provider name actions
 
 
No comments:
Post a Comment