On 13-10-2008 at 22:57:29 admi <[EMAIL PROTECTED]> wrote:

Thanks! But..

Context.php ->

 public function __get($varname)
    {
        var_dump("Trying to get something!");
        return "huh?";
        if ($varname == 'repeat')
            return $this->__repeat;

 ...
}

Doesn't display anything like "Trying to get something!" or "huh?" as __get method is used for getting unaccessible class members.
Am I wrong?

You're right. You'll need to change __set as well and make it store variables in a private object/array to prevent this.

--
regards, Kornel

_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to