> [mailto:[EMAIL PROTECTED] On Behalf Of RosSoft
> You don't need to pass $data to the helpers: see the blog 
> tutorial edit
> action:

OK, I have been enlightened. Thanks! Thanks to you, I've improved my
component and cleaned up my controllers as well. Open source at its best. <g>

So the example code now stands at:

<?php $formation->beginForm(  $html->url('/posts/add')  ) ; ?>

        <h3>Edit Post</h3>

        <?php $formation->hidden( 'Post/id' ) ; ?>

        <?php $formation->inputLabel( 'Post/title', true ) ; ?>

        <?php $formation->richLabel( 'Post/body', true ) ; ?>

        <hr />

<?php $formation->endForm() ; ?>

// ===========

Would still like a way to edit the descriptions, though...

--
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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to