You can either do that in your "AppController" which your other
controllers would extend "OR" you could do it the app directories
"bootstrap.php" file located in app/config/bootstrap.php

On Feb 1, 10:14 am, cake-learner <[email protected]> wrote:
> I want to set up a container so that i can save everything and access
> through that class when getting session variables.
>
> Page A
> $appClass = new AppClass();
> $appClass -> specific_value = 1000;
> $this -> Session -> write( "appclass", appClass );
>
> Page B
> $appClass = $this -> Session -> read( "appclass", appClass );
> echo $appClass -> specific_value;
> echo $appClass -> other_value;
>
> In other frameworks, they have a certain folder for autoload ( all
> classes within that folder will be loaded automatically ) but i am not
> sure if cakephp has one.
> Or I could set up a single class and include it in that top of page

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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