Pages

Friday, May 25, 2012

Zend Framwork Installation on Ubuntu using CLI.


zend framework installation on linux- ubuntu

Steps

1- Install the zend framewok bin---- sudo apt-get install zend-framework-bin
2- zf create project myapp
3- creating a symlink of zend library(i had already this zend lib)
 sudo ln -s /var/www/zendLib/library/Zend/

   Or
   
   download the zend library and put into library folder in the created project

4- sudo chmod -R 777 myapp
/

5- go into your application say(myapp)
   cd myapp


6- Now createing the controller and all... using these commands..

 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

   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 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