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

[eluser]wilso417[/eluser]
Hey guys,

i'm using modular extensions HMVC extension so i can make view partials. I'm working on a CMS right now but I have some questions about best practices.

A lot of my modules are going to need to reuse a lot of the same code whether it be lower level functionality like database calls or reuse common views. Here are some ideas I have to help accomplish this, I am just wondering what would be best approach, best practice, your guys opinions, etc.

- have a base controller that other controllers inherit from that
- have a base model that other models inherit from
- have models call other models
- have controllers call other models
- have multiple controllers in one module
- have libraries do database calls


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