Hi all,
I think you can tell I'm a newbie from my question.
I have a controller like so:

class MediaController extends AppController {

        var $name = 'Media';

        var $images = array();
        var $panoramas = array();
        var $videos =  array();


        function getMedia() {

               /* assigns some values to the three variables by doing
some logic */

                $this->set('images', $this->images);
                $this->set('panoramas', $this->panoramas);
                $this->set('videos', $this->videos);
                return true;
        }



        function getImages() {

                debug($this->images);  /* it's EMPTY!?
                return $this->images;
        }

}

When i requestAction the getMedia, and when i debug the values in the
variables are set. But afterward when i call getImages to return the
values, the variable is empty!   I'm doing this via a different .ctp
file that belongs to another controller. What am i doing wrong?
-Armen


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