Kornel Lesiński <[EMAIL PROTECTED]> writes:

> class myobject
> {
>       function __get($var) {...}
>       function __set($var,$val) {...}
> }
> 
> $myobject = new myobject();
> $myobject->title = "title";
> $phptal->myobject = $myobject;
> 
> <div tal:content="myobject/title"/>
> 


Thanks! But it's about 3 times slower than it's native equivalent. __get is only
used when reading data from inaccessible class members.

If you may tell me where in PHPTAL (in which file) it is read, so I could put
some of my code there and unset it automatically while reading :)


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

Reply via email to