On 2/3/07, Grant Cox <[EMAIL PROTECTED]> wrote: > > You can use fake model / field names in your html/form helpers, and > this data still comes through to the controller ok. So, you could > have something like this in your view > > echo $html->input( 'Host1/name' ); > echo $html->input( 'Host1/address' ); > echo $html->input( 'Host2/name' ); > echo $html->input( 'Host2/address' );
I had solved this very similarly but used numbers instead of fake model names but I guess your idea is better as it will allow for hasOne associations Thanks for sharing Tarique -- ============================================================= PHP for E-Biz: http://sanisoft.com Cheesecake-Photoblog: http://cheesecake-photoblog.org ============================================================= --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
