Re: [PHPTAL] PHPTAL prefilters

2009-09-16 Thread GRolf
It sounds interesting and an improvement from previous versions. However, I'd like to see some tutorials putting this to work. When do you use those things, how can they be applied to improve your templates and/or code etc... What PHPTal lacks is this kind of documentation - the manual is

Re: [PHPTAL] PHPTAL prefilters

2009-09-16 Thread Kornel Lesiński
On 16-09-2009 at 08:14:31 GRolf ger...@pictureparking.com wrote: It sounds interesting and an improvement from previous versions. However, I'd like to see some tutorials putting this to work. When do you use those things, how can they be applied to improve your templates and/or code etc...

Re: Re[2]: [PHPTAL] PHPTAL prefilters

2009-09-16 Thread Kornel Lesiński
On 16-09-2009 at 09:55:27 GRolf ger...@pictureparking.com wrote: I know it's an open project and you can't do everything. The reason I was asking for this kind of documentation however is that I lack this kind of knowledge. As such, I'm certainly not in the position to write the documentation,

Re: [PHPTAL] PHPTAL prefilters

2009-09-16 Thread Kornel Lesiński
On 16-09-2009 at 08:32:24 Murat Çorlu muratco...@gmail.com wrote: Sounds like good. Good job! I can suggest a solution to running filters with having to chance to exclude some tags. For example minify html, css and javascript content except textarea tags and some special scripts: html

Re: [PHPTAL] PHPTAL prefilters

2009-09-16 Thread Kornel Lesiński
On 16-09-2009 at 10:20:59 Iván -DrSlump- Montes drsl...@pollinimini.net wrote: The API looks ok to me, just one thing, since it's not a runtime operation (in the sense that a php file is generated for the template), I think it'll be great if it used something along the lines of

[PHPTAL] Wiki

2009-09-16 Thread Kornel Lesiński
Following Iván's suggestion, here's Wiki for PHPTAL: http://phptal.org/wiki/ (It's DokuWiki with quick'n'dirty CSS hack, which I know isn't right and I'll fix it soon! :) -- regards, Kornel ___ PHPTAL mailing list PHPTAL@lists.motion-twin.com

Re: [PHPTAL] PHPTAL prefilters

2009-09-16 Thread Iván -DrSlump- Montes
Hi again, Find attached a simple implementation of the plugin loader using a subset of Zend Framework's api. Check ZF docs [1] for documentation, it should behave the same way. The use with PHPTAL might be something like this: // Get the standard instance of the loader $loader =

[PHPTAL] Accessing methods of an object from template file

2009-09-16 Thread Marco Pivetta
Hi there! I've been playing around with some classes I've built and now I'm getting some problems with PHPTAL integration. The problem is very simple: how do I access methods of my objects from inside the template? Is there any simple way to do that or do I have to modify the PHPTAL sources? What

Re: [PHPTAL] Accessing methods of an object from template file

2009-09-16 Thread Kornel Lesiński
On 16-09-2009 at 15:44:51 Marco Pivetta ocram...@gmail.com wrote: Hi there! I've been playing around with some classes I've built and now I'm getting some problems with PHPTAL integration. The problem is very simple: how do I access methods of my objects from inside the template? Is there any

Re: [PHPTAL] PHPTAL prefilters

2009-09-16 Thread Kornel Lesiński
On 16-09-2009 at 14:45:39 Iván -DrSlump- Montes drsl...@pollinimini.net wrote: Find attached a simple implementation of the plugin loader using a subset of Zend Framework's api. Check ZF docs [1] for documentation, it should behave the same way. The use with PHPTAL might be something

Re: [PHPTAL] PHPTAL prefilters

2009-09-16 Thread Iván Montes
On 9/16/09 4:56 PM, Kornel Lesiński wrote: On 16-09-2009 at 14:45:39 Iván -DrSlump- Montes drsl...@pollinimini.net wrote: // Get the standard instance of the loader $loader = $tpl-getFilterLoader(); // and add a new location for filters $loader-addPrefixPath('My_Filter',

Re: [PHPTAL] PHPTAL prefilters

2009-09-16 Thread Iván Montes
On 9/16/09 6:03 PM, Kornel Lesiński wrote: On 16-09-2009 at 16:30:35 Iván Montes drsl...@pollinimini.net wrote: I'm not too fond in how the caching works so I might be completely wrong here. Why are prefilters needed to compute the caching logic? As I understand it, the filters are run at