CodeIgniter Forums
The easiest way to know if it is HMVC? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: The easiest way to know if it is HMVC? (/showthread.php?tid=53310)



The easiest way to know if it is HMVC? - El Forum - 07-18-2012

[eluser]solid9[/eluser]
Okay let say the site is under CodeIgniter.

What is the fastest or easiest or the right way to know,
If the site is under HMVC?

I can say by looking at the structure of the folder?

So how about you? What can you suggest?

Thanks in advanced.




The easiest way to know if it is HMVC? - El Forum - 07-18-2012

[eluser]Aken[/eluser]
Folder structure + HMVC add on. CI does not support HMVC out of the box, so it should be easy to spot.


The easiest way to know if it is HMVC? - El Forum - 07-19-2012

[eluser]PhilTem[/eluser]
Either:

Structure of the folders or

inside any controller, library, or model do the following
Code:
if ( method_exists(array(&$this->router), 'fetch_module') )
{
  // we got HMVC
}