Log in

View Full Version : fetch_template is giving me Call to undefined function


Guest190829
02-02-2005, 05:17 AM
Okay, I'm making a hack and I have some templates that I need to add to the php page, so I'm using the fetch_template function. However when I do this I get this error

Call to undefined function: fetch_template()


I'm using something identical to this

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

and yes I have a template that matches the above ^^

Any suggestions?

Jolten
02-02-2005, 06:41 AM
Are you including global.php?

and

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


There's a . before the =

miz
02-02-2005, 09:51 AM
use need to use the .(dot)
only if you in some kind of loop
(while,foreach)
and you want it to save info and not get replaced
like if my template is like

<tr><td>$value</td></tr>

then i will need to use the dot
not on regualr use

Guest190829
02-02-2005, 09:24 PM
Are you including global.php?

and

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


There's a . before the =


Thank you for you help, it seems I didn't include global.php. >_<