Sharing data between controllers is generally not a good practice and
is a good indicator of heading down the wrong path.

Data should all be manipulated at the model level.
Explain a little more about the data your sharing between the two
controllers and why the data is coming from a controller instead of
the model.

On Jan 17, 9:27 pm, zer0_gravity <[email protected]> wrote:
> it worked thanks i realised i did not setup the session component
> variable
>
> thanks alot
>
> On Jan 17, 11:11 pm, zer0_gravity <[email protected]> wrote:
>
>
>
>
>
>
>
> > Could briefly explain the other ways because it is not working for me.
>
> > On Jan 17, 10:49 pm, tnbrooks <[email protected]> wrote:
>
> > > You could write them into session using something like:
> > > $this->Session->write('the_value', $value);
> > > then to access it in your other controller you just use:
> > > $this->Session->read('the_value');
>
> > > This is just one way......there are many others
>
> > > On Jan 18, 2:27 pm, zer0_gravity <[email protected]> wrote:
>
> > > > How Do I share a variable or data that exist in a particular
> > > > controller but do not exist in other controller(s)?
>
> > > > thanks

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" 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