[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] Preloading a macros file ?

2008-10-10 Thread Guillaume Lecanu
Le vendredi 10 octobre 2008 à 16:05 +0100, Kornel Lesiński a écrit : > On 10-10-2008 at 15:46:10 Guillaume Lecanu <[EMAIL PROTECTED]> wrote: > > > If PHPTAL read it, I suppose all readed macros will be saved in memory, > > and so we should uses it everywhere without the need of ${m}; > > You cou

Re: [PHPTAL] Preloading a macros file ?

2008-10-10 Thread Kornel Lesiński
On 10-10-2008 at 15:46:10 Guillaume Lecanu <[EMAIL PROTECTED]> wrote: If PHPTAL read it, I suppose all readed macros will be saved in memory, and so we should uses it everywhere without the need of ${m}; You could try to hack PHPTAL::executeMacro() function - get base function name that your

Re: [PHPTAL] Preloading a macros file ?

2008-10-10 Thread Guillaume Lecanu
Le vendredi 10 octobre 2008 à 10:39 +0100, Kornel Lesiński a écrit : > On 10-10-2008 at 10:25:36 Guillaume Lecanu <[EMAIL PROTECTED]> wrote: > > > I have a file "macros.html" with all my macros for our website. > > But this is really annoying to call each macros like this : > > metal:use-macro=".

[PHPTAL] Re: German translation of the phptal documentation

2008-10-10 Thread Moritz Baumann
Axel Zöllich <[EMAIL PROTECTED]> writes: > > Hi, > > i've started a german translation of the documentation. > [...] > If anybody is interested: > http://eternalschleif.de/de.tar.gz > > The .tar.gz contains the phptal documentation style files. > > xel > Hi, I could help with the translatio

Re: [PHPTAL] German translation of the phptal documentation

2008-10-10 Thread Anton Andriyevskyy
Very good. Lets make it popular world-wide. But please do not haste. Just translate as pleasure process and make it good! I'm doing Russian translation. I wish to make it the best. Anton On Fri, Oct 10, 2008 at 1:23 AM, Axel Zöllich <[EMAIL PROTECTED]> wrote: > Why use ___

Re: [PHPTAL] Preloading a macros file ?

2008-10-10 Thread Kornel Lesiński
On 10-10-2008 at 10:25:36 Guillaume Lecanu <[EMAIL PROTECTED]> wrote: I have a file "macros.html" with all my macros for our website. But this is really annoying to call each macros like this : metal:use-macro="../../macros.html/name_of_my_macro" There is a solution to force to load macros.html

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] Preloading a macros file ?

2008-10-10 Thread Guillaume Lecanu
Hi, I have a file "macros.html" with all my macros for our website. But this is really annoying to call each macros like this : metal:use-macro="../../macros.html/name_of_my_macro" There is a solution to force to load macros.html and to call the macro everywhere like this : metal:use-macro="nam