This will generate an empty model file, with the appropriate class name,
in the appropriate location.
so
zf create model FooBar
will create a file
application/models/FooBar.php
with class name
Application_Model_FooBar
The idea here is that out of the box, the models you create will be able
to autoload inside your Zend_Application application.
-ralph
Саша Стаменковић wrote:
What will zf create model generate?
Regards,
Saša Stamenković
On Tue, Dec 15, 2009 at 3:51 PM, Ralph Schindler
<[email protected] <mailto:[email protected]>> wrote:
Hello all,
As some of you are aware, a significant amount of new features on
the Zend_Tool list for it's release in ZF 1.10. To get insight into
what's new, please check out:
http://framework.zend.com/issues/browse/ZF-7940
Currently, these features are in trunk and can be installed and used
from trunk. Keep in mind, there are changes in both bin/ as well as
library/, so you'd need both.
You can also get the latest alpha version of ZF from
pear.zfcampus.org <http://pear.zfcampus.org> as a PEAR package.
http:://pear.zfcampus.org <http://pear.zfcampus.org>
I am also in the process of cleaning up and restructuring the
documentation for Zend_Tool.
My plan is to get a significant amount of work done in a wiki, get
it's content approved by the users (thats you), then move it into
the DocBook (the manual). The problem, from my perspective, is that
Zend_Tool is such a large set of features, the current documentation
does not immediately give you the understanding to get started- at
least not as much as I would like. So please, send me your
suggestions here, in IRC or to my email [ralph dot schindler (a)
zend dot com].
http://ralphschindler.com/wiki/index.php/Zend_Tool_Running_Documentation
Some of the more interesting new features:
Creating a Form:
zf create form MyForm
Creating a Model:
zf create model Foo
Creating A DbTable (named Bar, for table bar)
zf create dbtable Bar bar
Thanks for playing & testing it out!
-ralph