On Friday, 10 February 2012 19:16:31 UTC+7, janimal wrote:
>
>
> The problem is trying to do the following.... 
>
> Get the form to show the invoice_id passed to the controller method as 
> a read only - non-drop down and to pass that back to the controller 
> for the save once the user has entered the data. 
>
> The formhelper seems to automagically create a dropdown box for; 
>                 echo $this->Form->input('invoice_id'); 
>
> even if I don't send the list of invoices from the controller using; 
>                 $invoices = $this->Lineitem->Invoice->find('list'); 
>                 $this->set(compact('invoices')); 
>
>
Tell FormHelper to use a normal input for invoice_id, eg.:

echo $this->Form->input('invoice_id', array('type' => 'text', 'readonly' => 
'readonly'));

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to