Page 1 of 1
Using a .php file as a template
Posted: Thu 19. Feb 2004, 15:13
by trahma
After reading the documentation on how the template system is built, am I correct in seeing that I can't use a separate .php file? Ideally I'd like to keep a separate file as a template. Did I miss something or is this not possible?
Posted: Thu 19. Feb 2004, 17:20
by Bijan Hemati
I think you can.
Create your php files then use call tag {PHP: My_php_script} and place it anywhere inside the template.
Posted: Thu 19. Feb 2004, 23:57
by trahma
I've been working on putting my website into the template system phpwcms uses but have come to another pitfall.
It appears I can't use the {PHP} tag within the header block. I actually need to send out the php code session_start() at the top of the file. How should I go about doing this?
Posted: Fri 20. Feb 2004, 02:28
by Bijan Hemati
This may have to be answered by Oliver.
Do a search in the forum to see what you can find meanwhile.
also look at these posts.
http://www.phpwcms.de/forum/viewtopic.p ... t=template