Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-12-22 19:50:41

Dimitri
Member
From: Johannesburg
Registered: 2010-10-31
Posts: 129

Using external files for page templates PHP problem

Hi peeps, I am not so great with PHP.

Today I moved from 4.2 to 4.3 and sadly the method I work with below doesnt work anymore

See link

<txp:php>echo parse(file_get_contents(txpath.'/pages/index.php'));</txp:php>

Can anyone provide me a better solution, thank you.

Last edited by Dimitri (2010-12-22 20:53:17)


<txp:way_too_cool />

Offline

#2 2010-12-22 20:52:04

Dimitri
Member
From: Johannesburg
Registered: 2010-10-31
Posts: 129

Re: Using external files for page templates PHP problem

Solution for 4.3.0
<txp:php>include parse(txpath.'/pages/index.php');</txp:php>

Have fun with 4.3.0

Please report back if you have any problems.

Last edited by Dimitri (2011-01-03 09:18:47)


<txp:way_too_cool />

Offline

Board footer

Powered by FluxBB