Thanks for the suggestion. What I understood it's that they set a
variable in the session (ok), read it from the session and copy the
value in a controller's variable (ok) and then use controller variable
to initialize stuff in a their View called ThemeView that is located in
the views directory. I can't figure out how they use this View. It's a
parent for other views? it's used directly?

And then I also wonder how to initialize helpers with some parameters.
Normally I set just the name of the helper class in the array called
helpers in the controller and I obtain an instance usable inside the
view. Would be great to have a little more power on initializing this
helpers. I would pass them the theme name and I could use in my code
thing like that:

$my_stupid_helper->blog_post($blog_post);

and the moment the unique way I know to send parameters to the Helpers
it's to send them when I invoke a method, in this way:

$my_stupid_helper->blog_post($blog_post, $theme);

but I'm a so rigid stupid programming purist that I can't accept
this...

Federico


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