Rahvin Posted January 14, 2013 Share Posted January 14, 2013 Hello, how can I access my image- und css- directories with php? In the tpl-files I can simply use {$img_dir}. But how can I achieve this in php-files? Link to comment Share on other sites More sharing options...
vekia Posted January 14, 2013 Share Posted January 14, 2013 use constants like _PS_IMG_DIR_ , _THEME_CSS_DIR_ hope it solves your problem Link to comment Share on other sites More sharing options...
Rahvin Posted January 14, 2013 Author Share Posted January 14, 2013 use constants like _PS_IMG_DIR_ , _THEME_CSS_DIR_ hope it solves your problem Thanks a lot. Are there any docs where I can find all constants? Link to comment Share on other sites More sharing options...
vekia Posted January 14, 2013 Share Posted January 14, 2013 I don't know any website, where PHP constants are listed... - i will write article about PHP constant's in prestashop today - it will be available in articles section at our website, hope that helps all of developers Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now