Rešio sam problem na sledeći način:
- u svakoj skripri sam pozvao sledeću funkciju:
Kôd:
//
// function url_root ()
// Return root level of site
// This works if function is called from script which is in the root of the site,
// or if script is included by other script which is in the root.
//
function url_root() {
$m_result = "http://" . $_SERVER['HTTP_HOST'] . str_replace('\\', '/', dirname ($_SERVER['SCRIPT_NAME']));
if (substr($m_result, -1,1) !== "/"){
$m_result .= '/';
}
return $m_result;
}
- rezultat sam prosledio smarty-ju koji ga prikazuje u okviru base taga