Re: Form helper: send default values as named params? --psybear

2010-12-14 Thread euromark
sounds interesting! On 14 Dez., 17:03, Joshua Muheim wrote: > In fact, I'm doing right that at the moment (and some other > functionalities in other components that alltogether do really good > job in allowing even more RAD). :-) > > I guess as soon as they are real-life-proven, I will publish th

Re: Form helper: send default values as named params? --psybear

2010-12-14 Thread Joshua Muheim
In fact, I'm doing right that at the moment (and some other functionalities in other components that alltogether do really good job in allowing even more RAD). :-) I guess as soon as they are real-life-proven, I will publish them. On Tue, Dec 14, 2010 at 4:11 PM, euromark wrote: > i would even c

Re: Form helper: send default values as named params? --psybear

2010-12-14 Thread euromark
i would even create a component and pass a "whitelist" of valid field names this way you can use the code in several controllers and actions :) On 14 Dez., 08:49, Joshua Muheim wrote: > Thanks for this nice hint, Mark. I'll place it there. :-) > > > > > > > > On Tue, Dec 14, 2010 at 12:19 AM, eu

Re: Form helper: send default values as named params? --psybear

2010-12-13 Thread Joshua Muheim
Thanks for this nice hint, Mark. I'll place it there. :-) On Tue, Dec 14, 2010 at 12:19 AM, euromark wrote: > you should do that in the action > in the else part of if (!empty($this->data)): > > http://www.dereuromark.de/2010/10/07/cakephp-beginner-tips/ > > > On 13 Dez., 16:59, psybear83 wrote:

Re: Form helper: send default values as named params? --psybear

2010-12-13 Thread euromark
you should do that in the action in the else part of if (!empty($this->data)): http://www.dereuromark.de/2010/10/07/cakephp-beginner-tips/ On 13 Dez., 16:59, psybear83 wrote: > Hey guys > > I'm creating a form using the Form helper, and I'd like to send > default values using named params: > >

Form helper: send default values as named params? --psybear

2010-12-13 Thread psybear83
Hey guys I'm creating a form using the Form helper, and I'd like to send default values using named params: /users/add/first_name:max/last_name:miller I've already come so far that the input() accepts default values for text fields and dropdown lists: echo $this->Form->create(null, array('url'