Re: [fw-general] Re: [ZF2] Using ServiceManager

2012-12-13 Thread Marco Pivetta
If your instance comes from a Service Manager itself, you can handle its instantiation as you like. Basically, this means that you shouldn't create an instance yourself, but instead always fetch one from the service manager. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/

Re: [fw-general] Why is there no formFieldset() view helper?

2012-12-13 Thread Ludwig Ruderstaller
Hi Ralf, i use something called "DisplayGroup". Like in ZF1. see https://gist.github.com/4277710 for an example. br Ludwig aka Rufinus -- CWD - Customized Web Development http://www.cwd.at Ludwig Ruderstaller l.ruderstal...@cwd.at Sickenberggasse 11/17PGP I

Re: [fw-general] Why is there no formFieldset() view helper?

2012-12-13 Thread Ludwig Ruderstaller
Hi Ralf, i use something called "DisplayGroup". Like in ZF1. see https://gist.github.com/4277710 for an example. br Ludwig aka Rufinus -- Ludwig Ruderstaller http://www.cwd.at -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubscr...@lis

Re: [fw-general] Re: [ZF2] Using ServiceManager

2012-12-13 Thread saiman
Thanks for the replay, I checked ServiceLocatorAwareInterface. As I understand it's applicable only for the controllers? Just wondering who is going to inject the ServiceManager to my class if it's not related with the ZF2 (I don't use the Zend MVC) at all. In general I've got something like the s

Re: [fw-general] Why is there no formFieldset() view helper?

2012-12-13 Thread Ralf Eggert
Hi Matthew, > The default behavior was requested as part of the RFC process. You can > disable it on a given form by setting the wrapElements flag to a > boolean false. Played around a little with WrapElements but did not quite get what changes when set to true. > Whether or not you want it pers

[fw-general] Re: [ZF2] Using ServiceManager

2012-12-13 Thread Marco Pivetta
Heya, No, you have to keep a reference to the service manager. The whole point of doing that is to avoid having singletons or global/static variables that would pollute the environment and make things such as 2 ServiceManagers with different services very very hard to achieve. I suggest you to pa

Re: [fw-general] Why is there no formFieldset() view helper?

2012-12-13 Thread Matthew Weier O'Phinney
On Thu, Dec 13, 2012 at 9:35 AM, Ralf Eggert wrote: > Marco Pivetta schrieb am 13.12.2012 16:21: >> Why would fieldsets in the form component represent HTML fieldsets? HTML >> fieldsets have no meaning at all IMO... They could be replaced by if >> it wasn't a question of semantics. > > Well, the

Re: [fw-general] Why is there no formFieldset() view helper?

2012-12-13 Thread Marco Pivetta
This is a Form on Paper: [image: Inline images 1] Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 13 December 2012 16:35, Ralf Eggert wrote: > Marco Pivetta schrieb am 13.12.2012 16:21: > > Why would fieldsets in the form component represent HTML fieldsets? HTML > >

Re: [fw-general] Why is there no formFieldset() view helper?

2012-12-13 Thread Ralf Eggert
Marco Pivetta schrieb am 13.12.2012 16:21: > Why would fieldsets in the form component represent HTML fieldsets? HTML > fieldsets have no meaning at all IMO... They could be replaced by if > it wasn't a question of semantics. Well, the -Tag is connected to a -Tag. Ask any webdeveloper what a fiel

Re: [fw-general] Why is there no formFieldset() view helper?

2012-12-13 Thread Marco Pivetta
Why would fieldsets in the form component represent HTML fieldsets? HTML fieldsets have no meaning at all IMO... They could be replaced by if it wasn't a question of semantics. A Form does not necessarily represent an HTML form. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.

Re: [fw-general] Why is there no formFieldset() view helper?

2012-12-13 Thread Ralf Eggert
Hi Matthew, >> I wonder, why there is no formFieldset() view helper? > > Simple oversight, and nobody's bugged us for one before now. :) Just another question for understanding. When I use fieldsets with a form these fields are always grouped together when echoed with a view helper: I am used

Re: [fw-general] Why is there no formFieldset() view helper?

2012-12-13 Thread Matthew Weier O'Phinney
On Thu, Dec 13, 2012 at 8:32 AM, Ralf Eggert wrote: > I wonder, why there is no formFieldset() view helper? Simple oversight, and nobody's bugged us for one before now. :) > I can use the > formCollection() view helper, but is it really supposed to do the job > for a form with fieldsets that cor

[fw-general] Why is there no formFieldset() view helper?

2012-12-13 Thread Ralf Eggert
Hi, I wonder, why there is no formFieldset() view helper? I can use the formCollection() view helper, but is it really supposed to do the job for a form with fieldsets that correspond to the same domain object? Regards, Ralf -- List: fw-general@lists.zend.com Info: http://framework.zend.com/ar

Re: [fw-general] Combine TableGateway, RowGateway and Entity classes

2012-12-13 Thread Ralf Eggert
Hi Ralph, here is the script: http://pastebin.com/3tqn1RiM It uses this entity class: http://pastebin.com/6c6fy8UK And this is the database dump for the SQLite3 database: http://pastebin.com/PFKadDu4 I hope you can reproduce it. It is tested with 2.0.5 release. Regards, Ralf -- List: fw-

[fw-general] Re: CMS example with ZF 2

2012-12-13 Thread Marco Pivetta
Heya, There is no fully working example of CMS built with ZF2. Consider looking at Ensemble though, they're building an open-source one. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 13 December 2012 08:46, bolshii [via Zend Framework Community] < ml-node+s634137n4