Re: using php within a php generated template



just got to read the script refferred to in the op at zinkwazi, the
templates are strictly html and place markers, how the markers are handled
is determined by phpslideshow.php. to add php functions to the template
pages TRY rename them to .php, and editt the slideshow.php file to refer to
template.php instead of template.html
a rough n ready try out worked, added a date function.


--
If at first you dont succeed
try try try again
If at first you do succeed
try not to look surprised

_
<acruse@xxxxxxxxx> wrote in message
news:1178237329.712710.263930@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
what you describe is indeed what i'm trying to accomplish. i know
includes *should* work, however they don't. the only thing i can think
of is if there is a different syntax used for calling a php function
from within a template file. i'm using the normal way (and it's not
working). even when i rewrite the php document to write the header and
footer as part of the template file (i.e. not an include), the php
functions (that are part of a menu) are still not parsed. i'm pretty
frustrated with it, so any suggestions are much appreciated.

/aaron



.



Relevant Pages

  • substr() doesnt work
    ... I've a template with some PHP code in it. ... including several other PHP commands. ... These are the officially allowed PHP functions: ...
    (comp.lang.php)
  • Re: New template engine - retry
    ... is an improvement over Smarty (and the other, newer, template engines ... than other template systems. ... There are two central points where I believe mplate is different from ... other PHP template engines. ...
    (comp.lang.php)
  • Re: [PHP] Pure PHP
    ... I want to write some of my ideas about php performance and maintenance. ... you may consider this response to Robert's template systems arguments. ... Fortunately it's my own tag implementation ... If you got lots of read sql operations and if the data can store in php array. ...
    (php.general)
  • Re: New template engine - retry
    ... is an improvement over Smarty (and the other, newer, template engines ... tell me why you think this template is better ... There are two central points where I believe mplate is different from ... other PHP template engines. ...
    (comp.lang.php)
  • Re: A better XSS trap (Feedback wanted)
    ... better to always be forced to choose the right filter depending on the ... It makes template code shorter, ... and easier to understand for non-programmers (doing the HTML design). ... I personally stick to PHP only, because the I gain of a template engine ...
    (comp.lang.php)