Log in

View Full Version : $variable problem


N8
05-03-2005, 01:21 AM
In my phpinclude template, I have the following code, grabbing a template containing some advertisement code.

eval('$adbox= "' . fetch_template('adbox') . '";');

This works great when including $adbox in other templates, however when I try to include another template inside $adbox, it doesnt get included...



Anyone have any idea why this might be happening?

Paul M
05-03-2005, 01:50 AM
This works great when including $adbox in other templates, however when I try to include another template inside $adbox, it doesnt get included...How exactly are you trying to "include another template inside $adbox" ?

I'm pretty sure you cannot put any code inside a template that would actually load/call another template. You have to do it in the php as you build the page.