Any top-level application resources: like models, should be extremely
flexible. Having said that, if there is anything to target, I would
like to facilitate this style of development:
http://www.slideshare.net/weierophinney/architecting-your-models
The more confusing parts (For most new developers), is hooking up
models, naming them, and having them accessible via autoloading to your
controllers. That is the first use case this attempts to solve.
In the near future, with the new documentation, and new features, I
*expect* someone to create a 3rd party crud/admin tool for Zend_Tool ;)
But in the mean time, this will help facilitate people developing models
in house, without a 3rd party system like doctrine.
-ralph
Саша Стаменковић wrote:
True, everithing else would be useless, and deleted, since model can be
anything :)
Regards,
Saša Stamenković
On Tue, Dec 15, 2009 at 4:08 PM, Ralph Schindler
<[email protected] <mailto:[email protected]>> wrote:
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]>
<mailto:[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>
<http://pear.zfcampus.org> as a PEAR package.
http:://pear.zfcampus.org <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