Using a .php file as a template

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
trahma
Posts: 2
Joined: Thu 19. Feb 2004, 06:28
Location: Duluth, MN
Contact:

Using a .php file as a template

Post 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?
Bijan Hemati
Posts: 191
Joined: Sun 9. Nov 2003, 00:18
Location: Austin, TX

Post 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.
trahma
Posts: 2
Joined: Thu 19. Feb 2004, 06:28
Location: Duluth, MN
Contact:

Post 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?
Bijan Hemati
Posts: 191
Joined: Sun 9. Nov 2003, 00:18
Location: Austin, TX

Post 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
Post Reply