Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-08-30 15:34:47

Ji31
Member
Registered: 2005-08-24
Posts: 103

include in templates

How do I include some page into the template page?

< ? include ‘example.php’; ? > doesn’ work. It is showed in the code, but not on the page.
include ‘example.php’; also doesn’ show. It is also showed in the code, but also on the page.

What I should write into the tamplate, if I want to write code?

Last edited by zem (2005-08-30 23:45:16)

Offline

#2 2005-08-30 17:55:05

Niconemo
Member
From: Rhône-Alpes, France
Registered: 2005-04-18
Posts: 557

Re: include in templates

<code>
<txp:php>
your code;
</txp:php>
</code>

instead of
<code>
<?
your code;
?>
</code>


Nico

Offline

#3 2005-10-13 17:21:10

Ji31
Member
Registered: 2005-08-24
Posts: 103

Re: include in templates

<txp:php>
include“reklama.php”;
</txp:php>

this code is writing parse error. why?

I need to include file ‘reklama.php’, which is in the root of my web. ‘/reklama.php’ also doesn’t work.
Why?

Offline

#4 2005-10-13 20:16:48

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: include in templates

<txp:php>include 'reklama.php';</txp:php>

If you’re getting an error you’d need to tell us what it is before we can figure out what’s causing it.

Offline

Board footer

Powered by FluxBB