CodeIgniter Forums
Modular Extensions - HMVC version 5.3 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Modular Extensions - HMVC version 5.3 (/showthread.php?tid=33523)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39


Modular Extensions - HMVC version 5.3 - El Forum - 11-25-2010

[eluser]wiredesignz[/eluser]
@Timothy_, that first URL would be something like:
Code:
http://domain.tld/index.php/invoices/staff/invoices

But you could also use module routes to use fewer segments.


Modular Extensions - HMVC version 5.3 - El Forum - 11-25-2010

[eluser]wiredesignz[/eluser]
@WanWizard, Yeah I can see that being useful, I will look into the functionality. Thanks.


Modular Extensions - HMVC version 5.3 - El Forum - 11-25-2010

[eluser]Timothy_[/eluser]
[quote author="wiredesignz" date="1290771413"]@Timothy_, that first URL would be something like:
Code:
http://domain.tld/index.php/invoices/staff/invoices

But you could also use module routes to use fewer segments.[/quote]

Cheers!!!

Have a great weekend!


Modular Extensions - HMVC version 5.3 - El Forum - 11-26-2010

[eluser]wiredesignz[/eluser]
Module model paths have been added to the CI_Loader::$_ci_model_paths array. Thanks WanWizard Wink


Modular Extensions - HMVC version 5.3 - El Forum - 11-26-2010

[eluser]WanWizard[/eluser]
@wiredesignz,

Thanks for the quick response!


Modular Extensions - HMVC version 5.3 - El Forum - 11-26-2010

[eluser]wiredesignz[/eluser]
It made sense. Thanks.


Modular Extensions - HMVC version 5.3 - El Forum - 11-27-2010

[eluser]Kijer[/eluser]
hello,

How do I get that kind of routes.

/Admin/Classifieds/categories/edit

AND

/Admin/blog/categories/edit

Legend: classifieds and blog are modules, and classes are controllers are edit methods.

What should the structure HMVC side?

Because we can see that if admin is a module I can not make subfolders.

Thank you


Modular Extensions - HMVC version 5.3 - El Forum - 11-27-2010

[eluser]wiredesignz[/eluser]
Sub-directories in modules function as they should.

Creating routes and understanding application structure are part of learning to use CodeIgniter properly. Good luck.


Modular Extensions - HMVC version 5.3 - El Forum - 11-28-2010

[eluser]Kijer[/eluser]
Thank you for your answer, but I'll still bother you a bit.

I have a small conflict between a sub folder and method

example:

Quote:admin (module)> ad (folder)> annonces.php (controller)
if I do / admin / ads / I have my controller that load

By cons, if I want to call

Quote:admin / ads / categories (and its controller categories.php
), it seeks a method to load classes in annonces.php, I also assume that is where my routes.php comes to my rescue?

I tried: $route['ads/categories'] = "categories" but it does not work.


Thank you for your help, it is precious.


ps : Sorry if my English is not correct, I'm french and try to be as clean as possible.


Modular Extensions - HMVC version 5.3 - El Forum - 11-28-2010

[eluser]Johan André[/eluser]
[quote author="Kijer" date="1290980148"]Thank you for your answer, but I'll still bother you a bit.

I have a small conflict between a sub folder and method

example:

Quote:admin (module)> ad (folder)> annonces.php (controller)
if I do / admin / ads / I have my controller that load

By cons, if I want to call

Quote:admin / ads / categories (and its controller categories.php
), it seeks a method to load classes in annonces.php, I also assume that is where my routes.php comes to my rescue?

I tried: $route['ads/categories'] = "categories" but it does not work.


Thank you for your help, it is precious.


ps : Sorry if my English is not correct, I'm french and try to be as clean as possible.[/quote]

A modules structure is essentially the same as your basic codeigniter application, that is:

Code:
modules
  ad
    controllers
      ad.php     <- Public controller
    models
      ad_model.php
    views
      ad
        index.php
        ...

You can even use config, libraries, helpers, languages-folder in there too...