Welcome Guest, Not a member yet? Register   Sign In
HMVC best practices to reuse code
#4

[eluser]wilso417[/eluser]
Thanks guys from giving me some insight, it's helping me get on the right track. I'm still a little confused on how to organize a couple things.

Our CMS has content modules (news, events, documents, etc) and just regular modules (contact form, flash timeline)

content modules have a lot of common things like:

on the front-end common views, common error pages
on the back-end common things like adding in meta information, title, etc. to a piece of content and setting user/group permissions on that content

regular modules do not nessarily have anything in common with content modules. they will probably be all public, would not allow a cms admin to set the meta information on these, etc.

I think a base controller would be good to do very general things that both of these types of modules would have in common.

but how can i keep common functionality with my content modules? maybe have another controller that content modules inherit from (ie. news controller -> content controller -> base controller) ?


Messages In This Thread
HMVC best practices to reuse code - by El Forum - 02-03-2010, 12:45 PM
HMVC best practices to reuse code - by El Forum - 02-03-2010, 07:42 PM
HMVC best practices to reuse code - by El Forum - 02-04-2010, 03:16 AM
HMVC best practices to reuse code - by El Forum - 02-04-2010, 04:37 PM
HMVC best practices to reuse code - by El Forum - 02-09-2010, 11:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB