Welcome Guest, Not a member yet? Register   Sign In
What is the best way to achieve modular separation or HMVC in CI3?
#1
Star 

I know this topic is already beaten to death at StackOverflow, Reddit and even CI forums, but I was wondering if there was a better solution to this in 2016. I've been using CI3 for small and big web-apps for my clients and it had worked well until now. Presently, however, I want to build a very complex CRM app and its most important feature is extensibility.

In CI, we can define a bunch of CI_Controller derived classes in controllers folder that run based on the url path and views can be called from the views folder. But what I want is that my system should have modules and each module should have its own Controller and View. For example, the user will type something like these:

    http://localhost/modules/contacts
    http://localhost/modules/leads/add
    http://localhost/modules/sales

However, the contacts, sales and leads should not be predefined CI classes in my app. They should be something like Drupal modules or Wordpress plugins that the user can add/remove from the admin dashboard dynamically. The user or their developer should define their own controllers and views inside /modules/contacts/controllers and /modules/contacts/views folders. After some googling I found this CI modular-extensions-plugin that seems to do the job, but how good is it? The last I heard, plugin support was removed from CI3.

If its not easily possible in CI, then is it easily possible in any of the other frameworks like Laravel or Symfony?
Reply


Messages In This Thread
What is the best way to achieve modular separation or HMVC in CI3? - by prahladyeri - 05-26-2016, 08:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB