After many searches and tryouts i give up trying to find which constant/function returns the absolute path for the currently used template directory.
The thing is i'm trying to create a gallery, which will feature some imagery, videos, etc. The problem is if i place my images inside my IMAGES folder on the overriden template Dir, in order to access them i have to specify the absolute path to that images directory, and it would be more simple having some kind of constant or function that returns that info to me, dynamically, so even if my template dir changes name the information would allways be correct.
<img src="<?php echo TEMPLATE_DIR . /images/gallery/1.jpg ?>"/>
Dont really know if zencart has such thing declared in it, it def. should, any idea boys and girls ? =)
thanks in advanced.


Reply With Quote
