Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,151,344 members, 7,811,993 topics. Date: Monday, 29 April 2024 at 05:27 AM

Codeigniter HMVC - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / Codeigniter HMVC (2029 Views)

Codeigniter Not Receiving Input From Angularjs / Testing My Codeigniter Skill / Who Here Has Ever Heard Of Or Used Codeigniter? (2) (3) (4)

(1) (Reply) (Go Down)

Codeigniter HMVC by maekhel(m): 12:14am On Apr 07, 2015
Any with knowledge of HMVC in codeigniter shld cum to my aid. Am having problem making template in it.
Re: Codeigniter HMVC by micodon(m): 10:21am On Apr 07, 2015
what version of codeigniter?
are you using third party libs to organize your app the hmvc way?
whats the exact problem you re facing?
Re: Codeigniter HMVC by maekhel(m): 1:50pm On Apr 07, 2015
micodon:
what version of codeigniter?
are you using third party libs to organize your app the hmvc way?
whats the exact problem you re facing?
Codeigniter 2.2 and am using hmvc modular extension from wiredesign.
I want to create a template module to serve as a master template from wch I cn call other pages.
Re: Codeigniter HMVC by micodon(m): 2:41pm On Apr 07, 2015
that library from wiredesign has no templating functionality (when i used to use it..dunno bout now). i used to do a combo of the library and the templating library by phil sturgeon...... http://github.com/philsturgeon/codeigniter-template/zipball/master
Re: Codeigniter HMVC by talk2hb1(m): 3:30pm On Apr 07, 2015
Anybody still using CodeIgniter, I thought it was declared dead!!!
undecided
Re: Codeigniter HMVC by sarutobi: 4:16pm On Apr 07, 2015
maekhel:

Codeigniter 2.2 and am using hmvc modular extension from wiredesign.
I want to create a template module to serve as a master template from wch I cn call other pages.

If i get u correctly, what you want to do is have a main controller that in turn calls the other controllers depending on request?

First make sure all your contollers extends MX_Controller class. use (require_once APPPATH."third_party/MX/Controller.php" )
With the library you have from wiredesign, call modules::run($a, $b, $c,....); from your main controller.
- Where $a is the path to the controller file and method in the controller to call. e.g users controller and createUser action will be 'users/createUser';
- $b, $c etc are argument passed to the method being called

Also Note that library mandates that you have all your controllers in a modules folder in the APP directory and that the controllers folder is also present in the app directory but it must be empty.

Codeigniter was not designed with hmvc in mind, an this is more like a hack.

var_dump the response from modules::run and let it guides you. The library itself is not well documented and you will have to do a lot of debugging to figure things out yourself.

Good luck.
Re: Codeigniter HMVC by maekhel(m): 5:58pm On Apr 07, 2015
micodon:
that library from wiredesign has no templating functionality (when i used to use it..dunno bout now). i used to do a combo of the library and the templating library by phil sturgeon...... http://github.com/philsturgeon/codeigniter-template/zipball/master
Thanks, will check it out.
Re: Codeigniter HMVC by micodon(m): 6:40pm On Apr 07, 2015
maekhel:

Thanks, will check it out.

you wlcm bro
Re: Codeigniter HMVC by maekhel(m): 6:55pm On Apr 07, 2015
micodon:


you wlcm bro
Wch framework will u recommend aside codeigniter
Re: Codeigniter HMVC by micodon(m): 8:32pm On Apr 07, 2015
maekhel:

Wch framework will u recommend aside codeigniter

i switched from codeigniter to laravel. you should try same
Re: Codeigniter HMVC by maekhel(m): 12:55am On Apr 08, 2015
micodon:


i switched from codeigniter to laravel. you should try same
Am thinking FuelPHP
Re: Codeigniter HMVC by micodon(m): 6:34am On Apr 08, 2015
maekhel:

Am thinking FuelPHP

ive worked with Fuel before, its not as elegant as laravel
Re: Codeigniter HMVC by maekhel(m): 8:02am On Apr 08, 2015
micodon:


ive worked with Fuel before, its not as elegant as laravel
Alright, thanks will give it a shot
Re: Codeigniter HMVC by adewasco2k(m): 9:53am On Apr 08, 2015
talk2hb1:
Anybody still using CodeIgniter, I thought it was declared dead!!!
undecided

its all about the framework that could deliver a particular job well.

sure i still use codeigniter, i am currently working on a project using same.
Re: Codeigniter HMVC by micodon(m): 10:33am On Apr 08, 2015
adewasco2k:


its all about the framework that could deliver a particular job well.

sure i still use codeigniter, i am currently working on a project using same.

Leave the guy. i bet ill switch back to CI when V3 becomes complete
Re: Codeigniter HMVC by maekhel(m): 12:43pm On Apr 08, 2015
adewasco2k:


its all about the framework that could deliver a particular job well.

sure i still use codeigniter, i am currently working on a project using same.
Are u using the it with HMVC or jst d nstive MVC
Re: Codeigniter HMVC by adewasco2k(m): 6:27am On Apr 09, 2015
maekhel:

Are u using the it with HMVC or jst d nstive MVC
using the MVC native pattern
Re: Codeigniter HMVC by maekhel(m): 6:59am On Apr 09, 2015
adewasco2k:

using the MVC native pattern
OK

(1) (Reply)

Free Blog Design / Seun Need To Remove This From Nairaland. / Google Adsence (unacceptable Site Content)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 23
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.