Welcome Guest, Not a member yet? Register   Sign In
from MVC to HMVC
#1

[eluser]NikosV[/eluser]
hello forum.

The last years i’ve been prgramming applications with codeigniter and following the standard MVC architecture. I am planning moving to HMVC. While i think i undestand the main principles in HMVC i am having trouble understanding if there are any best practices to use this architecture.

For example,

Should i call the module controllers inside usual codeigniter view files using <?php echo Modules::run();?> ?
And if so what about any module-specific assets? should i run a module’s controller that echos these assets in the <head> of my view files?

Or maybe should i access my headers directy using the uri? But in that case, will i have to create a new template for each module?

Maybe i am missing some things here. Excuse my ignorance.
Thanks in advance for your answers.

P.S. If you are aware of any good tutorials i’ll be glad to hear about them.


Messages In This Thread
from MVC to HMVC - by El Forum - 12-04-2012, 02:13 AM
from MVC to HMVC - by El Forum - 12-09-2012, 12:00 PM
from MVC to HMVC - by El Forum - 12-09-2012, 01:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB