[pLog-svn] Modularize our action/view/dao and templates
Oscar Renalias
oscar at renalias.net
Mon Nov 19 09:03:36 EST 2007
No more major changes in LT 1.x, all we're going to discuss from now
on is 2.0 only.
On Nov 19, 2007 4:00 PM, Ahmad Saleh <ahmadfds at gmail.com> wrote:
> Hi Mark
>
> Are these changes for lifetype 2 or 1.x
>
>
>
> On Nov 19, 2007 3:50 PM, Oscar Renalias <oscar at renalias.net> wrote:
> > I doubt that it will bring any advantage other than simplifying the
> > directory structure, but it's probably going to be easier to get a
> > feeling of your idea if you try to implement it in a branch, for
> > now...
> >
> >
> >
> >
> > On Nov 19, 2007 3:18 PM, Mark Wu <markplace at gmail.com> wrote:
> > > 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
> > >
> > > _______________________________________________
> > > 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
> >
>
>
> _______________________________________________
> 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