Use the standard way of setting a variable in a PHP Class, if you want
to say, set a variable in one method of a class and retrieve it in
another.

Class SomethingController extends AppController{
    function a(){
       $this->myVar = "whee";
       $this->b();
    }

    function b(){
        echo $this->myVar;
    }
}

as nate said, $this->set is used for transferring data from the
Controller side of things to the View.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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