Re: [fw-general] Does everyone use zf.sh?

2011-01-26 Thread koji ueda
It seems that some people don't use zf command like I don't.

I looked at Zend_CodeGenetartor.
It's hard to understand what the script is before generating it.

I'm using skelton file like below.
+ controller.skel 


Re: [fw-general] Does everyone use zf.sh?

2011-01-26 Thread Ralph Schindler

Hey koji,


Recently I used zf command(zf.sh), but it's hard to use.


I guess you mean that it doesn't have all the features you'd like :)


I think that usually something like controller class have their parent
class custmized for each project or company.
But the class files generated from zf command extend Zend_Controller_Action.
I need to fix it.
Form and DbTable are as well.


It does lack some project specific customizations, this is on the TODO. 
 See my full list in the response to Jurian.



I think there is no need to use zf command.
I'm using code generator I made.
It has customizable skelton file.


You should have a look at Zend_CodeGenerator.  THis is a stand alone 
component that does non-template generation of object oriented assets 
like files/classes/methods&properties/etc.


It might reduce the amount of work in your toolset.

-ralph


Re: [fw-general] Does everyone use zf.sh?

2011-01-26 Thread Ralph Schindler

Hey Jurian,

Zend_Tool is in exactly the state you describe.  It's main purpose is 
project creation and immediate prototyping.  Beyond the basics, there 
is/has been too much variation to be able to successfully model all 
developers workflows.



1) Not able to use with existing projects (scan files and add to xml)


This is one of those big TODO's.  It's not simple as the tool has to be 
able to find out the context of every file in a project if possible. 
THat means some kind of really smart scanner.  It's not impossible to 
create, but it is a challenge.



2) Not able to delete objects (and remove from xml)


This is also challenging, but mostly done.  While the actions for 
delete() are not in the provider, we did add "interactivity support" 
some releases ago.  This is important b/c if you were to run a delete 
command, it should prompt you to ask you if you are sure you want to to 
delete it.



3) Not able to configure base classes (e.g. My_Controller_Action instead of
Zend_Controller_Action, same for forms).


This and other "project specific" configurations are also on the TODO.


I'd love to have a Doctrine (esp. for migrations) integration and a deployment
tool. Both were proposed at the wiki (for deployment Zend_Build is proposed)
but they aren't finished. An integrated deployment tool would ease the process
of testing, staging and production environments.


Since Doctrine 2 just went out the door, we'll look into what it will 
take to make the doctrine cli work with zf's cli.



Perhaps when ZF2 reaches a stable state, the proposals can be developed
further. I'm willing to support the development of these tools.

Regards, Jurian


Re: [fw-general] Does everyone use zf.sh?

2011-01-26 Thread Jurian Sluiman
On Wednesday 26 Jan 2011 09:18:56 koji ueda wrote:
> Hello.
>  
> [...]
> 
> Does everyone use zf.sh?

I think Zend_Tool is a very powerful tool when used and configured properly. 
For me there are unfortunately three drawbacks:
1) Not able to use with existing projects (scan files and add to xml)
2) Not able to delete objects (and remove from xml)
3) Not able to configure base classes (e.g. My_Controller_Action instead of 
Zend_Controller_Action, same for forms).

I was looking into Zend_Tool and wrote a few things to help me with my 
workflow, but unfortunately I'm not able to use it for the complete development 
trajectory.

I'd love to have a Doctrine (esp. for migrations) integration and a deployment 
tool. Both were proposed at the wiki (for deployment Zend_Build is proposed) 
but they aren't finished. An integrated deployment tool would ease the process 
of testing, staging and production environments.

Perhaps when ZF2 reaches a stable state, the proposals can be developed 
further. I'm willing to support the development of these tools.

Regards, Jurian
-- 
Jurian Sluiman
Soflomo - http://soflomo.com



Re: [fw-general] Does everyone use zf.sh?

2011-01-26 Thread Tobias Hoffmann

I'm using my own scripts, which date from 2006.

Nevertheless, Zend_Tool is good for kickstarting and stuff, and it's  
supported by Zend Studio.
Anyway, having it in the distribution is IMO a good way to win over RoR  
crowd. ;)