Gossamer Forum
Home : Products : Gossamer Links : PHP Front End :

Problem with include

Quote Reply
Problem with include
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?
Quote Reply
Re: [Robbie] Problem with include In reply to
I use

<? include("banner.php"); ?>

fine Unimpressed

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Problem with include In reply to
Of course it works when your php doesn't contain any parsing mechnism. But when it does, it doesn't work.
Quote Reply
Re: [Robbie] Problem with include In reply to
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