[pLog-svn] Modularize our action/view/dao and templates
Oscar Renalias
oscar at renalias.net
Mon Nov 19 07:31:48 EST 2007
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
>
More information about the pLog-svn
mailing list