Zend - Framework 1.11 - Using the zf command line tool

An easy way to create a new Controller is by doing this with the command line.

On Windows, open a new terminal (SHIFT + right click on your project directory) and write this:

$ TheProjectDirectory> CompletePathUntil\ZendFramework-1.11.7\bin\zf.bat create controller Menu

It will create:

  1. A controller in /application/controller/MenuController.php
  2. An indexAction in the MenuController file
  3. A view script in /view/scripts/menu/index.phtml
  4. An update for the project file: .zfproject.xml

All that in a single line.

Interesting, isn't it? cool

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Refresh Type the characters you see in this picture. Type the characters you see in the picture; if you can't read them, submit the form and a new image will be generated. Not case sensitive.  Switch to audio verification.