#1326
Answered
10/29/23, 11:47 AM
HansZ
Answers: 4

How to rename module

Hello!

I want to use some of example modules for my project. Bud I need little bit different project and application module organization.

Is there any way how to easily rename application module?

Thank You!

Answers (4)

#8
10/30/23, 8:34 AM
PHPJetTeam
1

Hello :-)

No problem, it is simple ;-)

Do it like this:

  • Copy module directory to some new directory as you wish
  • Change module namespace

For example: Old module directory is:

Admin/Content/Articles

and namespace is:

JetApplicationModule\Admin\Content\Articles

New module directory will be:

MyAdmin/ContentManagement/Articles

and new namespace will be:

MyAdmin/ContentManagement/Articles

And that's it! In the end, all you have to do is uninstall the old module using Jet Studio and install the new one.

Have a nice day ;-)

Have a nice day.

#12
11/10/23, 2:24 PM
PHPJetTeam
0

New feature "Clone module" is waiting for You in the last version of PHP Jet and Jet Studio ;-)

https://github.com/mirekmarek/php-jet/releases

#10
10/30/23, 11:34 AM
PHPJetTeam
0

Thank you, HansZ!

You are right! It will be there in some future version ;-)

#9
10/30/23, 8:36 AM
HansZ
0

Thanks! It's really easy!

But... Such a feature should be part of Jet Studio, don't you think?

Your Answer
Privacy Policy