ezakimak Posted August 26, 2011 Share Posted August 26, 2011 Hi, In my shop I have a subdir called /banners/ I placed inside this subdir a few pictures, and created a module to display those pictures, since I am not quite an expert at PHP, I just create a template file and located it in the /banners/ subdir. My intention is to isntall my module and use that template ( this is because another ftp user is going to upload the template from time to time , and I dont want to give him access to the module dir ) Thus I have this piece of code function hookHome($params) { global $smarty,$cookie; $smarty->assign('base_url',__PS_BASE_URI__); $smarty->assign('iso_lang',LanguageCore::getIsoById($cookie->id_lang)); $smarty->assign('this_path',__PS_BASE_URI__.'modules/'.$this->name.'/'); return $this->display(__FILE__,'pe_blockslider.tpl'); } I am having a hard time to replace the value of __FILE__ with the subdir where my template is, any idea what I should do ? I tried this but with no successful result return $this->display(__PS_BASE_URI__.'banners/','pe_blockslider.tpl'); thanks and regards Hugo 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