Re: [PHPTAL] Re: assigned fields

2008-10-14 Thread Kornel Lesiński
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 anyt

[PHPTAL] Re: assigned fields

2008-10-13 Thread admi
Kornel Lesiński <[EMAIL PROTECTED]> writes: > > On 10-10-2008 at 19:16:36 admi <[EMAIL PROTECTED]> wrote: > > > 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 > > :) > > It's in Context.php → _

Re: [PHPTAL] Re: assigned fields

2008-10-13 Thread Kornel Lesiński
On 10-10-2008 at 19:16:36 admi <[EMAIL PROTECTED]> wrote: 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 :) It's in Context.php → __get() -- regards, Kornel __

[PHPTAL] Re: assigned fields

2008-10-10 Thread admi
Kornel Lesiński <[EMAIL PROTECTED]> writes: > class myobject > { > function __get($var) {...} > function __set($var,$val) {...} > } > > $myobject = new myobject(); > $myobject->title = "title"; > $phptal->myobject = $myobject; > > > Thanks! But it's about 3 times slower than it's

Re: [PHPTAL] Re: assigned fields

2008-10-10 Thread Kornel Lesiński
On 09-10-2008 at 20:11:22 admi <[EMAIL PROTECTED]> wrote: I can set it to null if I know it was used in content.html. What if I don't know wchich variables have been used ? content.html uses $t->content, but I'd like to unset $t->content after executing and not knowing that content.html use

[PHPTAL] Re: assigned fields

2008-10-09 Thread admi
> I'm not sure what you're trying to achieve. > > If you just want to unset some variables, then $t->content = NULL; should > be good enough. > Thanks for the answer! I can set it to null if I know it was used in content.html. What if I don't know wchich variables have been used ? content.h