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

Tsz Ming WONG tszming at gmail.com
Tue Nov 20 11:20:47 EST 2007


On Nov 19, 2007 8: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


How about use of case sensitive file name in the next release?

e.g.

instead:

./modules/admin/post/actions/adminnewpostaction.class.php

but:

./modules/admin/post/actions/AdminNewPostAction.class.php

More locatable if you have many files under the same directory.
-- 
Best Regards,
tszming


More information about the pLog-svn mailing list