Welcome Guest, Not a member yet? Register   Sign In
Modular Extensions - HMVC version 5.2

[eluser]Gnative[/eluser]
Just thought you could use my profile instead of me putting up my email address for spammers to use.. ?
I PM'd you yesterday about joining th emailing list.. will do again.

Hey and thanks for all your work on ME so far..

[eluser]wiredesignz[/eluser]
Please provide your email address by Private Message only.

[eluser]Gnative[/eluser]
Hmm maybe my PM isn't working as i have tried 3 times now.. ?

I wrote if it was maybe an idea to use svn as a versioning code base.. possibly using beanstalk ( http://beanstalkapp.com/ ), they have a free package with 3 users but open read to the public..

Would save you emailing everyone an update and let us see the change logs..

I'd be willing to give you a hand setting this up if your not familiar with svn.

Would be please to help with ME in anyway..

[eluser]wiredesignz[/eluser]
Modular Extensions 5.1 does not need an SVN setup and is not available for public download.

The mailing list is adequate. Thanks.

Modular Extensions version 5.1.25 has been sent to the mailing list.

[eluser]Gnative[/eluser]
OK... I just trying to port my app from ME 4.0 to 5.* and wondering if this might be a bug in version 5.1.25

I have set a basic structure of

-controller
- test_controller
-modules
- test_module
- config
- controller
- Test
- helpers
- libraries
- Test_library
- models
- Test_model
- views

Everything works great up until i need to use a test_model from test_library then i get an "Undefined property" on test_model. If I check for test_model in the method in the controller that calls the library method test_model exists.

Thanks
S

[eluser]wiredesignz[/eluser]
Assuming `test_model` is loaded by test_controller and test_controller is not the first controller loaded.

Code:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
* Test library
*
**/
class Test_lib
{
    private static $CI;
    
    public function __construct()
    {
        //option 1 - first controller
        self::$CI =& get_instance();        
        self::$CI->load->model('test_model');
        
        //option 2 - last controller
        self::$CI =& end(modules::$registry);
        
        //option 3 - specific controller
        self::$CI =& modules::$registry['test_controller'];
    }
    
    public function test()
    {
        $sample_data = self::$CI->test_model->get();
    }
}

[eluser]wiredesignz[/eluser]
Modular Extensions version 5.1.27 has been sent to the mailing list.

Added a default $CI instance to all libraries loaded by ME.

($CI =& get_instance() is no longer required)

Simply use $this->CI->whatever()

Thanks Gnative for the idea. Wink

[eluser]Tony Nash[/eluser]
@wiredesignz I wonder if there are any differences with ME 4.x and ME 5.x (PHP5) other than PHP5 support?

Also, may I have taste of ME 5.x on current project please?

Thanks in advance!

[eluser]RESPECT[/eluser]
wiredesignz anyway i can get on that mailing list? would love to keep currentSmile

ps. great work w/ ME

[eluser]wiredesignz[/eluser]
Yes there are a few differences between ME4.2 and ME5.1

Please provide your email address by Private Message and I will add you to the mailing list.




Theme © iAndrew 2016 - Forum software by © MyBB