> [mailto:[EMAIL PROTECTED] On Behalf Of RosSoft > If you use $this->params['data']=$data at your controller, then in the > helper is accessible through $this->params['data'] > > If you use $this->data at your controller, then in the helper > $this->data
I've been doing: $this->set( 'data', $this->Post->findById( $id ) ) ; That's the way it is in the Blog tutorial: http://manual.cakephp.org/chapter/18 At any rate, I changed the helper so that you only need to pass in $data in the call to $formation->beginForm() ; That seems like a fairly painless middle ground, don't you think? So the revised example is: <?php $formation->beginForm( "/speakers/edit/{$data['Speaker']['id']}", $data ) ; ?> <h3>Edit Speaker</h3> <?php $formation->hidden( 'Speaker/id' ) ; ?> <?php $formation->inputLabel( 'Speaker/name', true ) ; ?> <?php $formation->habtmLabel( 'Presentation', $presentations, false ) ; ?> <?php $formation->inputLabel( 'Speaker/email1', true ) ; ?> <?php $formation->inputLabel( 'Speaker/email2', false ) ; ?> <?php $formation->inputLabel( 'Speaker/url', false ) ; ?> <?php $formation->richLabel( 'Speaker/bio', false ) ; ?> <hr /> <?php $formation->endForm() ; ?> / ============== -- Regards, Ryan Ginstrom --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~----------~----~----~----~------~----~------~--~---