Avatar

Smarty 3 and {php} (General)

by Micha ⌂, Sunday, September 04, 2011, 11:52 (4639 days ago) @ edkgb

Hi,

Is it possible for you to help me. I have just updated and have a problem.

In my main.tbl file I had an include:
{php}
include( $_SERVER['DOCUMENT_ROOT'].'/public/includes/navbar.inc');
{/php}

According to the documentation, it seems to be correct. Do you really need the global array $_SERVER to include a file?

regards
Micha

--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences


Complete thread:

 RSS Feed of thread