Jump to content

[SOLVED PS 1.7] module rename function not work


Guest

Recommended Posts

Rename PHP function does not work in my module.

Any idea to rename a directory?

Thank you

private function postValidation()
    {
        $context = Context::getContext();
        
        
        if (Tools::isSubmit('submit_create_folder'))
        {
            rename(_PS_ROOT_DIR_.'/'.Configuration::get('module_directory_home'),_PS_ROOT_DIR_.'/'.Tools::getValue('module_directory_home'));
            Configuration::updateValue('module_directory_home', Tools::getValue('module_directory_home')); 
        } 
......
...
..

 

Edited by Guest (see edit history)
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...