PDA

View Full Version : including php files


soccer-systems
09-03-2005, 09:43 PM
Hi Guys

my main (non links directory) site users several includes of php files

eg

<?php
require_once('../right.php');
?>

That brings up the right hand column etc.

I want to mirror the look of my main site in the links directory area.

I have seen the header / main / footer template files etc.

I am not sure however how to code in the pulling of the php file to be included.

Does php code have to be presented some way for smarty to understand what it is?

All thoughts appreciated.

Cheers
Mick

soccer-systems
09-03-2005, 09:52 PM
Got this sorted myself.

Any one else with the same issue see

http://smarty.php.net/manual/en/language.function.include.php.php

Cheers

Mick

kickass
09-04-2005, 05:25 PM
Cool beans.

Yes, we've found the smarty site to be a VERY helpful resource!