How can i do this in smarty, is something like this: {popup_init src="$smarty.const.APP_PATHjs/overlib.js"} <- doesnt work, what i want to do is to access a PHP defined constant within a smarty php function... anyone?