Part of the EllisLab Network
   
1 of 25
1
Modular Extensions - HMVC version 5.4
Posted: 29 January 2011 01:58 AM   [ Ignore ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  3216
Joined  06-10-2007

Modular Extensions - HMVC version 5.4 is available from Bitbucket. (see my signature below)

CodeIgniter version 1.7 is no longer supported.

 Signature 

URI Language Identifier | Modular Extensions - HMVC | View Object | Widget plugin | Access Control library

Profile
 
 
Posted: 29 January 2011 09:09 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
RankRankRank
Total Posts:  550
Joined  12-14-2008

Just updated a project of mine to ci 2.0 official and HMVC 5.4, and wanted to thank you for the excellent work
you made with hmvc smile

Profile
 
 
Posted: 30 January 2011 06:37 AM   [ Ignore ]   [ # 2 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1442
Joined  03-10-2009

Thanks again wiredesignz. Your extensions has helped a lot.

 Signature 

Isset | Isset Public Code Repo | Simple Message Library | Session Profiler for CI2.0 | CI session issues in IE

Profile
 
 
Posted: 30 January 2011 03:04 PM   [ Ignore ]   [ # 3 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  5399
Joined  06-19-2009

Thank you ver much, wiredesignz…

InsiteFX

 Signature 

Custom Designed Icons, eBook Covers Software Boxes. CD, DVD Etc. New iPhone® Tab Bar Icons and iPhone® Applications Icons.

STOP! Before posting your questions, remember the WWW Golden rule:
What did you try? What did you get? What did you expect to get?

Input -> Controller | Processing -> Model | Output -> View

Profile
 
 
Posted: 30 January 2011 07:17 PM   [ Ignore ]   [ # 4 ]  
Summer Student
Total Posts:  23
Joined  07-01-2010

Hey wiredesignz,

Thanks, fantastic.  One quick point - it seems I can not use the get_instance() funtion in a library when the controller has inherited from MX_Controller.  Any plans to change this?  Or should I be finding a workaround for each of my libraries?

(I raised this in an earlier post, http://codeigniter.com/forums/viewthread/179478/)

Much appreciated,

Kim

Profile
 
 
Posted: 30 January 2011 07:28 PM   [ Ignore ]   [ # 5 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  3216
Joined  06-10-2007

With HMVC you need to pass into or set the controller instance for the library before using it.

$this->load->library('form_validation');
$this->form_validation->CI =& $this;

/* or */

$this->load->library('form_validation', array('CI' => $this)); 

And then process the parameters inside the library constructor yourself.

 Signature 

URI Language Identifier | Modular Extensions - HMVC | View Object | Widget plugin | Access Control library

Profile
 
 
Posted: 30 January 2011 09:34 PM   [ Ignore ]   [ # 6 ]  
Summer Student
Total Posts:  23
Joined  07-01-2010

Thanks.

Profile
 
 
Posted: 31 January 2011 08:21 AM   [ Ignore ]   [ # 7 ]  
Grad Student
Avatar
Rank
Total Posts:  36
Joined  11-16-2009

Thanks, wiredesignz.

I have a doubt: Can I load a config file from a module using application/config/autoload.php $autoload?

Profile
 
 
Posted: 31 January 2011 06:17 PM   [ Ignore ]   [ # 8 ]  
Summer Student
Total Posts:  23
Joined  07-01-2010

Hi wiredesignz,

Another quick point.  When I’m not using HMVC, I can access controller properties in a view using $this->variable.  As soon as MY_Controller inherits from MX_Controller, however, the property is no longer available.

I’ve been reading up on the CI object hierarchy, including this article by David Upton, http://www.packtpub.com/article/codeigniter-and-objects but I,‘m having difficulty understanding how this changes when we use HMVC…

Any assistance appreciated…, Kim

Profile
 
 
Posted: 01 February 2011 05:18 PM   [ Ignore ]   [ # 9 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  335
Joined  05-09-2008

most useful and very much appreciated!

thanks, wiredesignz!

 Signature 

http://www.starfishwebconsulting.co.uk


Quicksnaps - CI Photo gallery app

Profile
 
 
Posted: 02 February 2011 12:24 AM   [ Ignore ]   [ # 10 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  3216
Joined  06-10-2007

The Modular Extensions HMVC, Bitbucket repository has been updated.

The Modules::$locations array may now be set in the application/config.php file. ie:

/*
|--------------------------------------------------------------------------
| Modules locations
|--------------------------------------------------------------------------
*/
    
$config['modules_locations'= array(
        
APPPATH.'modules/' => '../modules/',
    ); 
 Signature 

URI Language Identifier | Modular Extensions - HMVC | View Object | Widget plugin | Access Control library

Profile
 
 
   
1 of 25
1