Hi Mark<br><br>Are these changes for lifetype 2 or 1.x<br><br><div class="gmail_quote">On Nov 19, 2007 3:50 PM, Oscar Renalias <<a href="mailto:oscar@renalias.net">oscar@renalias.net</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I doubt that it will bring any advantage other than simplifying the<br>directory structure, but it's probably going to be easier to get a<br>feeling of your idea if you try to implement it in a branch, for<br>now...<br>
<div><div></div><div class="Wj3C7c"><br>On Nov 19, 2007 3:18 PM, Mark Wu <<a href="mailto:markplace@gmail.com">markplace@gmail.com</a>> wrote:<br>> Hee, hee, I plan to do that. But before create a new branch for this, I
<br>> really like to hearing everyone's opinions .. ^_^<br>><br>> Mark<br>><br>><br>> > -----Original Message-----<br>> > From: <a href="mailto:plog-svn-bounces@devel.lifetype.net">plog-svn-bounces@devel.lifetype.net
</a><br>> > [mailto:<a href="mailto:plog-svn-bounces@devel.lifetype.net">plog-svn-bounces@devel.lifetype.net</a>] On Behalf Of<br>> > Oscar Renalias<br>> > Sent: Monday, November 19, 2007 8:32 PM<br>> > To: LifeType Developer List
<br>> > Subject: Re: [pLog-svn] Modularize our action/view/dao and templates<br>> ><br>> > How about you create a new branch for this and do some<br>> > prototyping work?<br>> ><br>> > On Nov 19, 2007 2:10 PM, Mark Wu <
<a href="mailto:markplace@gmail.com">markplace@gmail.com</a>> wrote:<br>> > ><br>> > ><br>> > > Hi All:<br>> > ><br>> > > I really want to modularize our current code structure. But
<br>> > it maybe<br>> > > break the "backward compatabability" if user change thier<br>> > code in core<br>> > > level instead of plugin level ..<br>> > ><br>> > > I propose we add a new folder for modules, this folder will include
<br>> > > current actions, views, dao of summary, index and admin<br>> > ... the new<br>> > > structure looks<br>> > > like:<br>> > ><br>> > > ./class/dao/model.class.php
<br>> > > ./modules/index/actions/viewarticlection.class.php<br>> > > ./modules/index/views/viewarticleview.class.php<br>> > > ....<br>> > ><br>> > > ./modules/admin/post/actions/adminnewpostaction.class.php
<br>> > ><br>> > > ./modules/admin/post/actions/adminaddpostaction.class.php<br>> > > ./modules/admin/post/views/adminnewpostview.class.php<br>> > ><br>> > > ./modules/admin/post/dao/article.class.php
<br>> > > ./modules/admin/post/dao/articles.class.php<br>> > ><br>> > ><br>> > > .....<br>> > ><br>> > > The same in templates, so the ./templates/admin folder will<br>
> > seperate<br>> > > to small modules like:<br>> > ><br>> > > ./templates/admin/post/<br>> > > ./templates/admin/comment/<br>> > > .....<br>> > ><br>> > > So, we can modularize our code into several small modules, it can
<br>> > > easier for us to do the further develpement, debug and modification.<br>> > ><br>> > > The biggest advantage is take a shorter time to find a specific<br>> > > action. :(<br>
> > ><br>> > > So, here comes the steps:<br>> > ><br>> > > 1. Reorgnaize the folder and code<br>> > > 2. Rewrite the controller map<br>> > > 3. fix all includes<br>> > > 4. testing ....
<br>> > ><br>> > > Any ideas? Or someone can share your tips about how to find<br>> > a specific<br>> > > action scripts in 195 files (files under<br>> > ./class/actions/admin) in a<br>
> > > very short time ...<br>> > ><br>> > > Mark<br>> > > _______________________________________________<br>> > > pLog-svn mailing list<br>> > > <a href="mailto:pLog-svn@devel.lifetype.net">
pLog-svn@devel.lifetype.net</a><br>> > > <a href="http://limedaley.com/mailman/listinfo/plog-svn" target="_blank">http://limedaley.com/mailman/listinfo/plog-svn</a><br>> > ><br>> > _______________________________________________
<br>> > pLog-svn mailing list<br>> > <a href="mailto:pLog-svn@devel.lifetype.net">pLog-svn@devel.lifetype.net</a><br>> > <a href="http://limedaley.com/mailman/listinfo/plog-svn" target="_blank">http://limedaley.com/mailman/listinfo/plog-svn
</a><br>><br>> _______________________________________________<br>> pLog-svn mailing list<br>> <a href="mailto:pLog-svn@devel.lifetype.net">pLog-svn@devel.lifetype.net</a><br>> <a href="http://limedaley.com/mailman/listinfo/plog-svn" target="_blank">
http://limedaley.com/mailman/listinfo/plog-svn</a><br>><br>_______________________________________________<br>pLog-svn mailing list<br><a href="mailto:pLog-svn@devel.lifetype.net">pLog-svn@devel.lifetype.net</a><br><a href="http://limedaley.com/mailman/listinfo/plog-svn" target="_blank">
http://limedaley.com/mailman/listinfo/plog-svn</a><br></div></div></blockquote></div><br>