you're right, thanks for the help !

On márc. 4, 17:28, "Christian Winther" <[EMAIL PROTECTED]> wrote:
> I'm not sure what you mean, but you COULD do this in the controller:
>
> $this->data['Alias'] = array('domain' => $search['domain'], .....);
>
> That will make FormHelper use those variables automagic as if they came from 
> the Model :)
>
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of gbk *
> Sent: 4. marts 2008 16:45
> To: Cake PHP
> Subject: model instance to form helper
>
> hi,
>
> my view contains a list generated by a paginator and a filter form:
>
> <?php echo $form->create('Alias', array('action'=>'index')); ?>
> <?php echo $form->input('domain', array('value' => $search['domain'],
> 'options' => array_merge(array("" => "--"), $domains))); ?>
> <?php echo $form->input('sendto', array('value' =>
> $search['sendto'])); ?>
> <?php echo $form->end('OK'); ?>
>
> i would like to skip the "'value' =>" option and use instead of an
> Alias model instance. my question is how should i make and set this
> instance manually in my controller for the form helper?
>
> thank you and sorry for my bad english.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to