Jump to content

How can I force my module to copy files to override folder?


Hasher

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...