On 6/14/07, aniston <[EMAIL PROTECTED]> wrote:
>
> Gonzalo, I tried to use your approach which looks really simple, but I
> can't seem to call the page via the $html->submit helper :(
> If you can give me some code sample (i'm re-reading the API) on
> sending hidden data via submit maybe it will all work.
>
> If i call the page manually it works and spits out the correct static
> pdf file, missing the dynamic data.
>
>

This comes up all the time on the list because people don't read the
warning messages that CakePHP generates about deprecated
functionality.  $html->submit won't work in Cake 1.2 because the form
helper takes care of this.  I'm assuming you're using Cake 1.2.

HTML helper in Cake 1.2:
http://api.cakephp.org/1.2/class_html_helper.html

Form helper in Cake 1.2:
http://api.cakephp.org/1.2/class_form_helper.html

Ajax helper in Cake 1.2 (which you might need):
http://api.cakephp.org/1.2/class_ajax_helper.html

Until our excellent 1.2 documentation comes out (yes, there exists
such a thing) I recommend people use the Bakery and search
api.cakephp.org for tips on how to use Cake 1.2.

Bakery:  http://bakery.cakephp.org
API: http://api.cakephp.org


-- 
Chris Hartjes

My motto for 2007:  "Just build it, damnit!"

@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

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