For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > August 2004 > [PEAR] HTTP_Template_Flexy









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author [PEAR] HTTP_Template_Flexy
Jamie Wall

2004-08-08, 3:56 pm

First: I am really finding Flexy useful!

Second:

I have 2 questions concerning the use of Flexy:

1. Is there a way to use prefix/suffix with form tags? To make it work
for me, I am modifying HTTP_Template_Flexy_Element method
toHtmlNoClose() like:

return "{$prefix}<{$ret->tag}".$ret->attributesToHTML() . '>' .
$ret->childrenToHTML() . $suffix;

2. Is their a way to compile/output a string which contains the template
instead of using a file on disk? I see:

function compile(&$flexy,$string=false)

in HTML_Template_Flexy_Compiler_Standard, but I also want mergeElement
functionality which is in outputObject/bufferedOutputObject which seems
to rely on a template on disk. I have it mostly working, but again I
have to modify/subclass which doesn't seem right.

Thank you in advance.

Jamie Wall
http://www.webpeak.com
1(727)527-3646
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com