On Nov 9, 2006, at 10:00 AM, Erich C. Beyrent wrote:

>
> Silly newbie question here.  I have followed the instructions in the
> manual to set up a default index page, with a new default.thtml  
> layout,
> which echoes $content_for_layout.
>
> What I would like to know is where does $content_for_layout get set?

In the core: its the place where the view code gets spit into.

> Is
> there a default controller that gets called before anything else?

Not really, though all your controllers extend AppController.

>   I ask because I want to set up some objects and stuff them into  
> the sessions
> so that other controllers can access them.
>
> What's the best way to accomplish this?

I'd stick that sort of stuff in AppController (/app/ 
app_controller.php) as class variables or methods, or in /app/config/ 
bootstrap.php.

-- John

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