Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Zend Developer Zone:
Zend_Tool for the Developer - Part 2
Jan 23, 2009 @ 16:48:27

The Zend Developer Zone has posted part two of their look at the Zend_Tool component in the Zend Framework. In the previous article the introduced some more advanced usage of the component and in this new part they go a step further with Zend_Tool_Project.

This same concept applies to Zend Framework projects. In ZF projects, you have controllers, actions, views, models, databases and so on and so forth. In terms of Zend_Tool, we need a way to track these types of resources - thus Zend_Tool_Project. Zend_Tool_Project is capable of tracking project resources throughout the development of a project. [...] Zend_Tool_Project is capable of serializing the current project into a internal representation that allows it to keep track of not only *what* resources are part of a project at any given time, but also *where* they are in relation to one another.

Ralph shows it in action in the creation of a "create model" command for his command line tool. After running the command to create a new project, he creates a class to determine the model's context and a class to create a simple model with a get and set data functions.

tagged: series zendtool zendframework model zendtoolproject create