zend-tool

Problem with Zend Framework Quickstart Tutorial and version 1.8.2

I'm trying to work through the quick start tutorial of the Zend Framework version 1.8.2, but I'm getting an error when running this code: zf.sh create project quickstart error: expecting `'{'' in /Users/andrew/Sites/_library/ZendFramework-1.8.2/library/Zend/Tool/Framework/Client/Console.php on line 63 I'm doing this on Mac OS X 10.4. ...

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 information to avoid me having to add this as an extra step. Also, for this particular project ...

Zend Tool creation of a controller inside a module

Hello you all: 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 and view into the default namespace. Is it something that I'm doing wr...

Changing the template code produced by Zend_Tool

This is a silly little thing, but I was just wondering whether there was a way to change the style of the code produced by the Zend_Tool? Specifically, the bracket style? // from this: class Bootstrap extends Zend_Application_Bootstrap_Bootstrap { // to this class Bootstrap extends Zend_Application_Bootstrap_Bootstrap { Obviously it'...

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 to start my project with the same bootstrap file, including initialization of my plugins...

Zend_Tool setup problems

hai I read that to create a project, execute the zf Windows windows command (zf.bat): C:\>zf.bat create project newproject I saw zf.bat in my C:\wamp\www\Zend\bin, I want to create a new project in c:\wamp\www When I tried to run c:\wamp\www\zf.bat, I got an error message: "zf.bat is not internal or external command, operable progr...

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 document it says that to create a project I must run: C:\> zf.bat create project quickstar...

How do you migrate an old project to Zend Tool?

I've got a project developed circa Zend Framework 1.7 that I'd like to migrate to Zend Tool and ZF 1.9.4pl1. The main benefit I hope to gain is to be able to use automatic loading of Models, Forms, etc. In other words, I want to eliminate all of these little methods: protected function _getSurveyForm() { require_once APPLICATION_PATH ...

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 get this: Fatal error: Cannot redeclare class PHPUnit_Framework_TestSuite_DataProvider ...

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 auth ...and I get this message: Fatal error: Cannot redeclare class Zend_Loader in /home/andrew...

How to work with multiple word resources in Zend_Tool

So I've got a controller that I want to be camel cased: MisterFoobarController So I created it like this: zf create controller mister-foobar which created something like Mister-foobarController.php but inside of it created it correctly as MisterFoobarController. How do I create camel cased multiple word resources with the Zend_To...

zf tool behaves weird

On my ubuntu machine when i try to create a controller: zf create action edit events I get the error: Fatal error: Cannot redeclare class Zend_Tool_Project_Provider_Manifest in /usr/share/php/libzend-framework-p hp/Zend/Tool/Project/Provider/Manifest.php on line 69 I have created a symlink to zf.sh to my /usr/bin/zf But go...

Segmentation fault in Zend_Tool

I'm using Ubuntu 9.04 and I applied this tutorial But I'm still getting this error: berkerpeksag@berkerpeksag:~$ zf show version Segmentation fault What do I miss? Thanks. ...

Zend tool include path

Hello, 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 'set_include_path(get_include_path() . PATH_SEPARATOR . "/var/www/.../Zend/library")'; After var_dumping result o...

Zend command line tool action error

I just managed to create a project using Zend_Tool, but I am stuck on "second step" - enabling layout. zf enable layout leads to: An Error Has Occurred Action 'enable' is not a valid action. This is my folder structure: |--library | |--Zend //framework classes in this folder | |--bin //command line tool f...

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 "/modules" resources.frontController.moduleDirectoryControllerName = "controllers" i guess th...

Set Action Controller name for Zend_Tool create controller

Hi All, All my controllers use a custom Action Controller class, is there anyway to set the action controller class it uses when generating the the controller code? Or would be even better if I could set it up to map the action controller class to use based on the module the class is being created under. Cheers. ...

PHP CLI version issue

I am trying to use Zend Tool on my media temple Grid Server account. The problem is that the installed CLI version of PHP is 4.4.8 and Zend Framework needs PHP5. On an account basis its possible to choose PHP 4 or 5 but not so for CLI. Its possible to globally select to use PHP5 by using the extension .php5 but in the case of Zend Tool w...

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 (application.xml)? I've looked at the documentation for Zend_Tool (http://framework.zend.com/manual/en/z...

Problems with zend-tool reporting that providers are not valid

I have recently setup XAMPP 1.7.3 and ZendFramework 1.10.4 on a new computer and many of the commands that I normally use now fail. Here are the steps I used to setup and test ZF. First I added the ZF library folder (C:\xampp\php\ZendFramework-1.10.4\library) to the include path in php.ini. Then I added the ZF bin folder (C:\xampp\php...