PEAK XOOPS - Re: Better cloning process. in englishin japanese

Re: Better cloning process.

List posts in the topic

question Re: Better cloning process.

msg# 1.1.1
depth:
2
Previous post - Next post | Parent - No child | Posted on 2005/3/9 6:51
sudhaker  二等兵   Posts: 4

I didn't like same source code approach also. It defines same constants many times which generates PHP warnings (most of the time it is suppressed).

Following will be repeated for every clone

Cloned module - mytinyd
define('_MI_TINYD_NAME ', 'TinyD');
Cloned module - yourtinyd
define('_MI_TINYD_NAME ', 'TinyD');

Perhaps it will be better to have something like this

Cloned module - mytinyd
define('_MI_MYTINYD_NAME ', 'TinyD');
Cloned module - yourtinyd
define('_MI_YOURTINYD_NAME ', 'TinyD');

Which is only possible using some scripts which does find and replace in text & file rename.

May be if base module source has some special templating (#MOD#, #PREFIX# #prefix# #mod# etc in text and file name) then cloning tool can do find and replace job more reliably.


Votes:0 Average:0.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!