On 8/17/07, bobble-gobble <[EMAIL PROTECTED]> wrote:
>
> I'm new to Cake and have been searching for this answer for the last
> couple days.  Can't seem to find anything -- although I'm sure the
> problem is easily solved.
>
> Here's the situation:
>
> I have a form with validation working perfectly.  No database is being
> used.  After validation, I want to display the results of the form on
> a "printable page" (so very minimal layout).  How do you pass form
> results to a new layout?  What are the methods I should be looking at?
>
> Your help is very much appreciated.

I would do it the following way, but your milleage may vary.

1) have your form point to an action that is different from the one
that displays the form
2) all the data you've submitted is in $this->data, so all you have to
do is use $this->set(...) to populate variables in the "printable
page"

Hope that helps.

-- 
Chris Hartjes
Senior Developer
Cake Development Corporation

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 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to