I have been trying to use include() to include a php page in one of the template file (category.html). But I am getting fetal errors ( member function on a non-object). Since the template is being parsed (by page.inc.php) and included (by index.php), doesn't that contribute to the fetality of the include() function?
Jun 12, 2002, 11:36 PM
Veteran / Moderator (18436 posts)
Jun 12, 2002, 11:36 PM
Post #2 of 4
Views: 3848
I use
<? include("banner.php"); ?>
fine
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
<? include("banner.php"); ?>
fine

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Jun 13, 2002, 4:35 PM
Staff / Moderator (4101 posts)
Jun 13, 2002, 4:35 PM
Post #4 of 4
Views: 3771
You should be able to put any valid PHP code into the php templates. There really isn't any actual parsing done by Links SQL, but all the variables are just imported into the global scope, then the template is included. If you put an <?include('/path/to/file.php')?> in the template, then PHP will do all the work.
Adrian
Adrian