[pLog-svn] Modularize our action/view/dao and templates

Mark Wu markplace at gmail.com
Mon Nov 19 08:18:24 EST 2007


Hee, hee, I plan to do that. But before create a new branch for this, I
really like to hearing everyone's opinions .. ^_^

Mark

> -----Original Message-----
> From: plog-svn-bounces at devel.lifetype.net 
> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of 
> Oscar Renalias
> Sent: Monday, November 19, 2007 8:32 PM
> To: LifeType Developer List
> Subject: Re: [pLog-svn] Modularize our action/view/dao and templates
> 
> How about you create a new branch for this and do some 
> prototyping work?
> 
> On Nov 19, 2007 2:10 PM, Mark Wu <markplace at gmail.com> wrote:
> >
> >
> > Hi All:
> >
> > 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 ..
> >
> > 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:
> >
> > ./class/dao/model.class.php
> > ./modules/index/actions/viewarticlection.class.php
> > ./modules/index/views/viewarticleview.class.php
> > ....
> >
> > ./modules/admin/post/actions/adminnewpostaction.class.php
> >
> > ./modules/admin/post/actions/adminaddpostaction.class.php
> > ./modules/admin/post/views/adminnewpostview.class.php
> >
> > ./modules/admin/post/dao/article.class.php
> > ./modules/admin/post/dao/articles.class.php
> >
> >
> > .....
> >
> > The same in templates, so the ./templates/admin folder will 
> seperate 
> > to small modules like:
> >
> > ./templates/admin/post/
> > ./templates/admin/comment/
> > .....
> >
> > So, we can modularize our code into several small modules, it can 
> > easier for us to do the further develpement, debug and modification.
> >
> > The biggest advantage is take a shorter time to find a specific 
> > action.  :(
> >
> > So, here comes the steps:
> >
> > 1. Reorgnaize the folder and code
> > 2. Rewrite the controller map
> > 3. fix all includes
> > 4. testing ....
> >
> > 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 ...
> >
> > Mark
> > _______________________________________________
> > pLog-svn mailing list
> > pLog-svn at devel.lifetype.net
> > http://limedaley.com/mailman/listinfo/plog-svn
> >
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn



More information about the pLog-svn mailing list