<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=新細明體 size=2><SPAN class=856455411-19112007>Hi
All:</SPAN></FONT></DIV>
<DIV><FONT face=新細明體 size=2><SPAN
class=856455411-19112007></SPAN></FONT> </DIV>
<DIV><FONT face=新細明體 size=2><SPAN class=856455411-19112007>I really want to
modularize our current code structure. But it maybe break the "backward
compatabability" if user change thier code in core level instead of plugin level
..</SPAN></FONT></DIV>
<DIV><FONT face=新細明體 size=2><SPAN
class=856455411-19112007></SPAN></FONT> </DIV>
<DIV><FONT face=新細明體 size=2><SPAN class=856455411-19112007>I propose we add a
new folder for modules, this folder will include current actions, views,
dao of summary, index and admin ... the new structure looks
like:</SPAN></FONT></DIV>
<DIV><FONT face=新細明體 size=2><SPAN
class=856455411-19112007></SPAN></FONT> </DIV>
<DIV><FONT face=新細明體 size=2><SPAN
class=856455411-19112007>./class/dao/model.class.php</SPAN></FONT></DIV>
<DIV><FONT face=新細明體 size=2><SPAN
class=856455411-19112007>./modules/index/actions/viewarticlection.class.php</SPAN></FONT></DIV>
<DIV><FONT face=新細明體 size=2><SPAN class=856455411-19112007><SPAN
class=856455411-19112007>./modules/index/views/viewarticleview.class.php</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=新細明體 size=2><SPAN class=856455411-19112007><SPAN
class=856455411-19112007>....</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=新細明體 size=2><SPAN class=856455411-19112007>
<DIV><FONT face=新細明體 size=2><SPAN
class=856455411-19112007>./modules/admin/post/actions/adminnewpostaction.class.php</SPAN></FONT></DIV>
<DIV><FONT face=新細明體 size=2><SPAN class=856455411-19112007>
<DIV><FONT face=新細明體 size=2><SPAN
class=856455411-19112007>./modules/admin/post/actions/adminaddpostaction.class.php</SPAN></FONT></DIV></SPAN></FONT></DIV>
<DIV><FONT face=新細明體 size=2><SPAN class=856455411-19112007><SPAN
class=856455411-19112007>./modules/admin/post/views/adminnewpostview.class.php</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=新細明體 size=2><SPAN class=856455411-19112007><SPAN
class=856455411-19112007>
<DIV><FONT face=新細明體 size=2><SPAN class=856455411-19112007><SPAN
class=856455411-19112007>./modules/admin/post/dao/article.class.php</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=新細明體 size=2><SPAN class=856455411-19112007><SPAN
class=856455411-19112007><SPAN class=856455411-19112007><SPAN
class=856455411-19112007>./modules/admin/post/dao/articles.class.php</SPAN></SPAN></SPAN></SPAN></FONT></DIV></SPAN></SPAN></FONT></DIV>
<DIV><FONT face=新細明體 size=2><SPAN class=856455411-19112007>
<DIV><FONT face=新細明體 size=2><SPAN
class=856455411-19112007></SPAN></FONT> </DIV>
<DIV><FONT face=新細明體 size=2><SPAN
class=856455411-19112007>.....</SPAN></FONT></DIV>
<DIV><FONT face=新細明體 size=2><SPAN
class=856455411-19112007></SPAN></FONT> </DIV>
<DIV><FONT face=新細明體 size=2><SPAN class=856455411-19112007>The same in
templates, so the ./templates/admin folder will seperate to small modules
like:</SPAN></FONT></DIV>
<DIV><FONT face=新細明體 size=2><SPAN
class=856455411-19112007></SPAN></FONT> </DIV>
<DIV><FONT face=新細明體 size=2><SPAN
class=856455411-19112007>./templates/admin/post/</SPAN></FONT></DIV>
<DIV><FONT face=新細明體 size=2><SPAN class=856455411-19112007><SPAN
class=856455411-19112007>./templates/admin/comment/</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=新細明體 size=2><SPAN class=856455411-19112007><SPAN
class=856455411-19112007>.....</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=新細明體 size=2><SPAN
class=856455411-19112007></SPAN></FONT> </DIV>
<DIV><FONT face=新細明體 size=2><SPAN class=856455411-19112007>So, we can modularize
our code into several small modules, it can easier for us to do the further
develpement, debug and modification. </SPAN></FONT></DIV>
<DIV><FONT face=新細明體 size=2><SPAN
class=856455411-19112007></SPAN></FONT> </DIV>
<DIV><FONT face=新細明體 size=2><SPAN class=856455411-19112007>The biggest advantage
is take a shorter time to find a specific action.
:(</SPAN></FONT></DIV>
<DIV><FONT face=新細明體 size=2><SPAN
class=856455411-19112007></SPAN></FONT> </DIV>
<DIV><FONT face=新細明體 size=2><SPAN class=856455411-19112007>So, here comes the
steps:</SPAN></FONT></DIV>
<DIV><FONT face=新細明體 size=2><SPAN
class=856455411-19112007></SPAN></FONT> </DIV>
<DIV><FONT face=新細明體 size=2><SPAN class=856455411-19112007>1. Reorgnaize the
folder and code</SPAN></FONT></DIV>
<DIV><FONT face=新細明體 size=2><SPAN class=856455411-19112007>2. Rewrite the
controller map</SPAN></FONT></DIV>
<DIV><FONT face=新細明體 size=2><SPAN class=856455411-19112007>3. fix all
includes</SPAN></FONT></DIV>
<DIV><FONT face=新細明體 size=2><SPAN class=856455411-19112007>4. testing
....</SPAN></FONT></DIV>
<DIV><FONT face=新細明體 size=2><SPAN
class=856455411-19112007></SPAN></FONT> </DIV>
<DIV><FONT face=新細明體 size=2><SPAN class=856455411-19112007>Any ideas? Or someone
can share your tips about how to find a specific action scripts in 195 files
(files under ./class/actions/admin) in a very short time ...</SPAN></FONT></DIV>
<DIV><FONT face=新細明體 size=2><SPAN
class=856455411-19112007></SPAN></FONT> </DIV>
<DIV><FONT face=新細明體 size=2><SPAN
class=856455411-19112007>Mark</SPAN></FONT></DIV></SPAN></FONT></DIV></SPAN></FONT></DIV></BODY></HTML>