Questions tagged [zend-tool]

Zend Tool or ZFtool is a command line utility for managing Zend Framework 2 (Previously Zend Framework 1) Applications. It provide features like generate skeleton project/module structure, generate controller/actions, get configs etc.

Zend Tool or ZFtool is a command line utility for managing Zend Framework 2 (Previously Zend Framework 1) Applications. It provide features like generate skeleton project/module structure, generate controller/actions, get configs etc.

It provides following features.

  • Generate skeleton application structure.
  • Generate module structure.
  • Generate controller classes.
  • Generate controller actions.
  • Generate classmap for module.
  • Get loaded modules

It can be install by using composer or just using phar file zftool.phar.

For installation/usage information can found at github

65 questions
17
votes
4 answers

Zend Framework 2 project example

Can someone give me an Zend Framework 2 project example, or any info how to use zend_tool for ZF2. Thanks
Nikolai Senkevich
  • 2,370
  • 2
  • 19
  • 29
12
votes
3 answers

Zend Tool creation of a controller inside a module

I'm trying to create a controller inside a module using the Zend_Tool doing this: $ zf create module admin $ zf create controller login admin With the first command it creates de module hierarchy, but in the second command it creates the controller…
elbicho
  • 365
  • 1
  • 3
  • 12
9
votes
2 answers

How to customize Zend_Tool output?

I'd like to use Zend_Tool (ZF 1.9) with my project, but I would like to be able to customize the default output of new files. For example, all Controllers should have a specific header pre-pended to the output with phpdoc markup and licensing…
Jason
  • 103
  • 5
7
votes
1 answer

PHP Deprecated: You are retrieving the service locator from within the class ZFTool\Controller\ModuleController

I have installed zend tools using composer $ composer require zendframework/zftool:dev-master zftool has been installed and when I run php /vender/bin/zf.php modules list it's throwing warning PHP Deprecated: You are retrieving the service…
Hari Inukollu
  • 179
  • 2
  • 10
5
votes
1 answer

Zend_Tool remove controller/action

I made a controller with Zend_Tool, but now I want to delete the controller. I know i can just delete the file, but I was wondering if there was a way to do this with Zend_Tool, so i don't need to edit the .zfproject.xml myself. Thanks!
priktop
  • 1,155
  • 3
  • 12
  • 30
5
votes
1 answer

zf create project path name-of-profile file-of-profile

I was not able to find a good resource which is describing the following Zend_Tool command: zf create project path name-of-profile file-of-profile Not even here: http://framework.zend.com/manual/en/zend.tool.usage.cli.html Does somebody know a…
udo
  • 4,832
  • 4
  • 54
  • 82
5
votes
3 answers

How could I customize Zend_Tool to provide my own skeleton/template?

Zend_Tool is nice, it generates a project with a given name & a given path. But after a while, i started to develop my own tools, like helpers, plugins, validators, etc... I put them all in library, which is ok (and recommanded). But, i would have…
Boris Guéry
  • 47,316
  • 8
  • 52
  • 87
4
votes
3 answers

Working with Zend Tool in multiple dev environments

On any given Zend Framework project I can be working in 2 or 3 locations - my work PC, home PC or my MacBook. My source code is always in SVN and I usually work on a development server before pushing completed work to the production server. In this…
robjmills
  • 18,438
  • 15
  • 77
  • 121
3
votes
1 answer

Is there a Zend Tool command for scaffolding?

Does Zend Tool have a zf command that does the same as this Ruby on Rails command: ruby script/generate scaffold ModelName [field:type field:type ...] In other words, can Zend Tool create resources that already contain the code for CRUD actions?
XMen
  • 29,384
  • 41
  • 99
  • 151
2
votes
2 answers

Is there a new version of Zend_Tool for ZF2?

if so, where can it be found? is it going to have a new handle as to not conflict with zf1's tool? zf2 create module admin Zend_Tool documentation can be found here: http://framework.zend.com/manual/en/zend.tool.usage.cli.html
O Red
  • 145
  • 2
  • 13
2
votes
2 answers

Class extending Zend_Controller_Action, not found by Zend Tool

I created an class extension of Zend_Controller_Action and added some user defined methods, which will be accessed from any controller so forth. Every thing is working fine, until I use Zend Tool to create a new Action, as this time The Zend tool…
Starx
  • 77,474
  • 47
  • 185
  • 261
2
votes
2 answers

Zend_Tool include_path problem

I'm trying to install Zend Framework on my computer. I have done following: I have placed Zend framework files on C drive, the path is like: C:\ZendFramework\library C:\ZendFramework\bin (The bin folder contains the zf.bat, zf.sh and zf.php…
Artur
  • 139
  • 4
  • 9
2
votes
2 answers

Installing Zend Framework

I have been going through this page to install zend framework on my machine locally. http://framework.zend.com/manual/en/zend.tool.framework.clitool.html I can't get it recognize the command in my terminal "zf show version", it keeps coming back to…
wowzuzz
  • 1,398
  • 11
  • 31
  • 51
2
votes
3 answers

Custom path for view scripts

I use customized paths for my application based on Zend Framework (a.k.a. themes). The view scripts are saved in public/themes/themename/modulename/..., so switching the application theme is just substituting themename in the path. How to tell Zend…
takeshin
  • 49,108
  • 32
  • 120
  • 164
2
votes
1 answer

How can I generate XML application configuration using Zend_Tool?

When creating a new project using zf create project myproject it will create a default project layout with an application.ini in the configs folder. Where can I change these default settings so that it generates (and uses) an XML file…
wimvds
  • 12,790
  • 2
  • 41
  • 42
1
2 3 4 5