Welcome Guest, Not a member yet? Register   Sign In
[New] CodeIgniter + Shared Folder
#7

[eluser]porquero[/eluser]
[quote author="Glazz" date="1331046370"][quote author="porquero" date="1331046148"]How is it solution compared by HMVC for CI?[/quote]
This is not related to HMVC, i will work on this later to try to implemente the HMVC approach, but for now it doesn't do the HMVC job.

With this method you can have any number of applications with only one install of codeigniter but you can share models, helpers and libraries across all the applications without the need to copy them to the desired application directory.[/quote]

Well. I use hmvc in CI and I can separate modules and applications using only one CI installation.

For example:

/system
/application
/application/modules/module1
/application/modules/module2
/application/modules/app1
/application/modules/app2

The advantage of using hmvc is that you can call a controller from another or a view.

Examples:

Inside the controller
Code:
$module1 = $this->load->module('module1');
$module1->method($params, $...);

Or in a view:
Code:
modules::run('module/controller/method', $params, $...);

May be you can improve your solution with it.
I use wiredesignz / codeigniter-modular-extensions-hmvc.


Messages In This Thread
[New] CodeIgniter + Shared Folder - by El Forum - 03-06-2012, 04:02 AM
[New] CodeIgniter + Shared Folder - by El Forum - 03-06-2012, 04:17 AM
[New] CodeIgniter + Shared Folder - by El Forum - 03-06-2012, 04:21 AM
[New] CodeIgniter + Shared Folder - by El Forum - 03-06-2012, 05:48 AM
[New] CodeIgniter + Shared Folder - by El Forum - 03-06-2012, 08:02 AM
[New] CodeIgniter + Shared Folder - by El Forum - 03-06-2012, 08:06 AM
[New] CodeIgniter + Shared Folder - by El Forum - 03-06-2012, 08:59 AM
[New] CodeIgniter + Shared Folder - by El Forum - 03-06-2012, 03:04 PM
[New] CodeIgniter + Shared Folder - by El Forum - 03-06-2012, 03:13 PM
[New] CodeIgniter + Shared Folder - by El Forum - 03-06-2012, 07:48 PM
[New] CodeIgniter + Shared Folder - by El Forum - 03-06-2012, 11:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB