ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

widget with CI loader

July 19, 2010 4:12pm

Subscribe [9]
  • #16 / Nov 08, 2010 7:02am

    hungnm144

    7 posts

    I’ve put MY_Loader file from libraries to core folder, and changed “extends Model” to “extends CI_Model” but it still doesn’t work with my CI2.0. It still returns a blank page. i think the problem in library “widgets.php”. Can you re-upload your code for me? Thank you very much!

  • #17 / Nov 10, 2010 12:12am

    umefarooq

    690 posts

    first sorry for late reply, now in CI2.0 widget.php has become library now you have to load widget.php also for CI2.0 either use in autoload or where you want to load use $this->load->library(‘widgets’) will work.

  • #18 / Nov 10, 2010 7:19am

    hungnm144

    7 posts

    That’s great! Thanks @umefarooq. I did it. It worked in my CI2.0. Thanks for your support!

  • #19 / Jan 18, 2011 7:35am

    umefarooq

    690 posts

    Now widgets work with Modular separation(HMVC) you have to create widgets folder in module, so every module will have different widget, with version you can access module model and views just in normal way. if you are using CI2 just put files as it is. if you are using CI1.7 just copy widgets and widget functions from MY_Loader class and put in Moulder MY_Loader class file can be download from my first Post

  • #20 / Jan 23, 2011 10:29am

    InsiteFX

    6819 posts

    I think it would be better to code it to use just a widgets directory.

    This way they could be used anywhere.

    InsiteFX

  • #21 / Jan 24, 2011 5:28am

    umefarooq

    690 posts

    you can access widgets from widget main directory along with modular

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases