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
2
votes
1 answer

Zend Framework 1.1 Modules setup

i used zend_tool to setup a project then to create module blog with index controller etc but i guess the default config setup by zend_tool does not work with modules so i edited it resources.frontController.moduleDirectory = APPLICATION_PATH…
Jiew Meng
  • 84,767
  • 185
  • 495
  • 805
2
votes
2 answers

Zend tool include path

Is it possible to install and use ZF (+ its console tool) without access to include_path direcotory? I've tried adding the ...Zend/library direcotry into include_path but without success. I did it this way: php -r…
Petr Peller
  • 8,581
  • 10
  • 49
  • 66
2
votes
2 answers

my zf tools is creating the product controller in the wrong directory - is there a command list available anywhere

I am new to Zend Framework and also to Zend tools. I have two questions regarding Zend tools. Does anyone have any links for a detailed list of all the commands in Zend tools? I cannot seem to find anything? For example: if I want to use the tool…
andreea115
  • 289
  • 1
  • 3
  • 14
2
votes
1 answer

Zend_Tool: Fatal error: Cannot redeclare class Zend_Loader

I am able to create new projects with... zf create project ProjectName ...but this creates a project without copying the Zend Framework library. So I copy ZF into my project library and try to create a controller... zf create controller…
Andrew
  • 227,796
  • 193
  • 515
  • 708
2
votes
2 answers

Zend_Tool CLI issues, throwing fatal errors

Before installing PHPUnit on my Ubuntu machine, I thought I had zf.sh all set up correctly. I was able to create a new project without any issues. Now, since installing PHPUnit, everything is not working right. When I try to create a test project, I…
Andrew
  • 227,796
  • 193
  • 515
  • 708
2
votes
1 answer

Zend Framework create project error

I am new to the Zend Framework. I read the Zend Framework document. Here I saw to work Zend Framework must include the path in my php.ini, I believe that this is done because in my php info I saw include path is C:\www\zend_frame\library Also in…
user175361
2
votes
2 answers

Zend Framework 2 "Zend Tool Missing" in bin folder

im newbie in frameworks, but i had no difficulty installing etc the zend 1.x versions. But with ZF2 cant really figure out.... Any recource telling me creating a project using the zend tool i.e. zf.bat or zf.sh from bin directory, but there's none…
user1420814
  • 21
  • 1
  • 2
1
vote
1 answer

Generating data objects in Zend Framework

Is there any way to create data objects for MySQL database tables using Zend_Tool? What I am trying to achieve is to create setter/getter methods and column variable of any table in some class by using command line zf utility. (like we can do it in…
Pawan
  • 517
  • 1
  • 9
  • 25
1
vote
0 answers

PHP Zend Framework: How do I make ZF Tool work with extended Controller_Actions?

I'm working with a Zend Framework project and using the ZF tool from the command line. After setting up some initial structure, I extended the Zend_Controller_Action class with something like MySite_Controller_Action and made the existing…
1
vote
1 answer

Zend_Tool - Can we use it to create a model inside a specific directory?

Inside 'models' directory I've created another called 'mappers'. I wish to add a mapper there, however I can't find anywhere how to accomplish this with the zend_tool cli. Does anyone know how to do it, or even if it's possible ?
MEM
  • 30,529
  • 42
  • 121
  • 191
1
vote
2 answers

Zend Framework - Create db-table from database - Error

After I do: zf -p create dbtable.from-database I get: Cannot redeclare class Zend_Loader in /home/user/public_html/proj.dev/library/Zend/Loader.php on line 31 If we change the application.ini file generated and we commented the following…
MEM
  • 30,529
  • 42
  • 121
  • 191
1
vote
1 answer

Zend_Tool and project autoloading

I'm using Zend_Tool in a ZF app, which was originally generated by Zend_Tool. I can create controllers fine, but when I try to create an action I get a Fatal Error: Class ... not found in .... I'm using modular directory structure, and each module…
Cobby
  • 5,273
  • 4
  • 28
  • 41
1
vote
1 answer

Zend: Create action in a specific controller in specific module with command line

I want to create a testAction in testController of testModule with command line. So I go to tesModule directory(cd application/modules/test) and run the following command. zf.sh create action test -c test It created a action in…
Awan
  • 18,096
  • 36
  • 89
  • 131
1
vote
1 answer

Zend Framework 2 ZF tool creating controller

When I try to create a new controller in my Zend Framework 2.4 application, using the following ZF Tool command: zf create controller Author index-action-included=1 Author C:\wamp\www\ZendApp I get the following error: Reason for failure: Invalid…
MrD
  • 2,423
  • 3
  • 33
  • 57
1
vote
1 answer

Enabling Zend Developer Tools toolbar causes database connection errors

I want to built Doctrine 2 into an Apigility Zend Framework 2 application. Following Marco Pivetta's Doctrine ORM ZF2 Tutorial, I installed not only Doctrine, but also the Zend Developer Tools, like in the tutorial shown: $ composer require…
automatix
  • 14,018
  • 26
  • 105
  • 230