[fw-general] Controllers that respond to both normal requests and RESTful requests

2009-09-09 Thread Cameron
Hi, this is very likely to be a dumb question, but I'd really like to have my controllers respond to normal requests (as in http://domain.com/product/display/id/1) and also the full range of RESTful requests (GET http://domain.com/product/1 and so on). Turning on Zend_Rest_Route across all my

Re: [fw-general] zend_form:display validation and error messages

2009-09-09 Thread chrisweb
riyas wrote: everything works fine and mail is gone if I fill this form except that the form is not validated. For example the mail may sent without ‘FullName’, which is a required field another problem is unable to display messages like ‘'Thank you’ . this may because of

Re: [fw-general] How to: Zend Dojo Form Dependent Selects (e.g. Country/City)

2009-09-09 Thread Mario Knippfeld
Are there any plans for a Zend_Form Element which will handle it? it would be great! This works, but it isnt a very nice and clean solution :) denormalized schrieb: I've spent hours trying to figure out all the pieces to the puzzle of dependent selects. Here's my solution, in part gathered

Re: [fw-general] zf tool: no way to delete yet?

2009-09-09 Thread David Mintz
On Tue, Sep 8, 2009 at 11:55 PM, Ralph Schindler ralph.schind...@zend.comwrote: Hey David, [delete] functionality is slated for 1.10. It was left out of the 1.8 and 1.9 release for a couple of good reasons. Since deleting is a pretty irreversible action, and sometimes is also a recursive

[fw-general] Zend_Form File Element / Decorator - Extremely Confuzzled

2009-09-09 Thread Jayawi
Hi there~ I'm relatively new to ZF but have enjoyed using it so far. The main issue I've had with ZF is with it's Form and Decorator aspects. After going through God knows how many articles/blogs/posts and what not, I thought I finally had a grasp of it. Things were working okay. I created a

Re: [fw-general] view helpers within a view helper

2009-09-09 Thread Nick Pack
You should really use a join query for this, so that the comment resultset has all the info available already in it, the way you are doing it is quite inefficient neobeacon wrote: I create a view helper to show comments for a article.(by getting article_id from comments table and using

Re: [fw-general] view helpers within a view helper

2009-09-09 Thread mandi
And I think you should consider using the Models (DbTable) and not the Helpers for those operations. rgds Armand neobeacon wrote: I create a view helper to show comments for a article.(by getting article_id from comments table and using foreach to get each comment). But in comment

Re: [fw-general] zf tool: no way to delete yet?

2009-09-09 Thread Benjamin Eberlei
Don't underestimate yourself :-) We are always happy for any help and ralph would probably mentor you through the process if you would dedicate yourself to implementing this (and he hasn't started yet). If you seperate the Provider and the actual deletion, you can probably get this working by

Re: [fw-general] Zend_Form File Element / Decorator - Extremely Confuzzled

2009-09-09 Thread Daniel Latter
2009/9/9 Daniel Latter dan.lat...@gmail.com Hi, Have a look at this: http://www.slideshare.net/NickBelhomme/zend-framework-form-mastering-decorators Also regarding your code, the HtmlTag decorator is being applied so you can try and set that, also you can try and clear the default

Re: [fw-general] Debug Warning Zend Loader line 165

2009-09-09 Thread Ed Lazor
Hi Ralph, Thanks - I really appreciate the response, the clarification, and knowing that it will be possible to address this in the future. -Ed This is correct behavior.  The debugger in studio is throwing a warning in a situation where PHP has already suppressed the error.  FYI, Zend_Loader

Re: [fw-general] Zend_Form File Element / Decorator - Extremely Confuzzled

2009-09-09 Thread Thomas Weidner
Take a look into the FAQ where the problem, the reason and the solution is described: http://framework.zend.com/wiki/display/ZFFAQ/Forms Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: Jayawi jayawiper...@gmail.com

Re: [fw-general] Controllers that respond to both normal requests and RESTful requests

2009-09-09 Thread Matthew Weier O'Phinney
-- Cameron themsel...@gmail.com wrote (on Wednesday, 09 September 2009, 05:35 PM +0800): Hi, this is very likely to be a dumb question, but I'd really like to have my controllers respond to normal requests (as in http://domain.com/product/ display/id/1) and also the full range of RESTful

Re: [fw-general] view helpers within a view helper

2009-09-09 Thread neobeacon
Thanks for all. yes I also think that this way is inefficient.I should use join for this purpose,Thanks again for all -- View this message in context: http://www.nabble.com/view-helpers-within-a-view-helper-tp25351769p25368712.html Sent from the Zend Framework mailing list archive at

Re: [fw-general] zf tool: no way to delete yet?

2009-09-09 Thread David Mintz
On Wed, Sep 9, 2009 at 10:13 AM, Benjamin Eberlei kont...@beberlei.dewrote: Don't underestimate yourself :-) We are always happy for any help and ralph would probably mentor you through the process if you would dedicate yourself to implementing this (and he hasn't started yet). If you

Re: [fw-general] zf tool: no way to delete yet?

2009-09-09 Thread Benjamin Eberlei
On Wednesday 09 September 2009 06:47:49 pm David Mintz wrote: On Wed, Sep 9, 2009 at 10:13 AM, Benjamin Eberlei kont...@beberlei.dewrote: Don't underestimate yourself :-) We are always happy for any help and ralph would probably mentor you through the process if you would dedicate yourself

[fw-general] Default project structure - forms directory

2009-09-09 Thread Eugene Morgan
On the manual page for default project structure (http://framework.zend.com/manual/en/project-structure.project.html), shouldn't there also be a /forms/ directory under application?

Re: [fw-general] Zend_Form clearErrorMessages vs. clone the object

2009-09-09 Thread Chris Murray
What exactly is the feature request? For batch form operations, a new Zend_Form method named something like clearAndPrepForRePopulate(). It would recursively clearAllMessages(), including those in all elements and subForms, as well as set _errorsExist to FALSE. So it would like: $form =

[fw-general] Zend_Entity: Using it in a fully model-driven manner

2009-09-09 Thread Chris Murray
Zend_Entity looks promising so I dove into it today and was trying to figure out how to map my existing model-driven ORM architecture into it. My experimental goal is to use Entity as the (fatter) bottom layer of my base Model class and replace my abstracted CRUD methods, which currently call

Re: [fw-general] Zend_Entity: Using it in a fully model-driven manner

2009-09-09 Thread Chris Murray
Chris Murray wrote: So I need to be able to dynamically set the property list in Zend_Entity Another possible approach would be to create my own def object generator. I already have my definitions in my model and they are used for other purposes, such as form element configs, formatting,

Re: [fw-general] zf tool: no way to delete yet?

2009-09-09 Thread Ralph Schindler
Hey David, Are you on zftalk.dev? Both Benjamin and myself are typically in the room and I'd be more than happy to help you start tooling around with zend_tool in order to both become productive to it as well as extend and enhance it. Delete is actually probably pretty easy to implement and

Re: [fw-general] Zend_Form File Element / Decorator - Extremely Confuzzled

2009-09-09 Thread Jayawi
Thanks heaps Daniel and Thomas. I had actually visited that particular FAQ page before, but I thought it a dead-end or login-required page when in fact I now realise that it was due to the horrible internet connection that I have here that the FAQ questions failed to render as a link. In any