Jump to content

Copy files in install function


Edge_jr

Recommended Posts

Hi,

 

I have created new classes and controller for my module.

 

I have written install function and I want to copy classes (root/classes) and controller (root/controllers/admin)

 

How this will be written in install function.

 

Any Idea?

 

-Thanks

Link to comment
Share on other sites

I am expecting php copy function should work but not working.

 

copy("./classes/MyModule.php","../../classes/MyModule.php");
copy("./controllers/admin/AdminMyModuleController.php","../../controllers/admin/AdminMyModuleController.php");
 
Any Idea?
 
-Thanks
Edited by edge82 (see edit history)
Link to comment
Share on other sites

  • 2 months later...

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...