Hasher Posted March 4, 2015 Share Posted March 4, 2015 I'm creating a module which includes a new version of admin1234\themes\default\template\helpers\list\list_footer.tpl Question is, how should I write the install function for this module? I have something like this: public function install() { if (!parent::uninstall() || !Configuration::deleteByName('MYMODULE_NAME') ) copy('/override/list_footer.tpl', _PS_ROOT_DIR_.'/override/helpers/admin/templates/list'); if (!parent::install()) return false; return true; } but after installing the module no files are copied. 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