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 plugin (intelligent view partials)

March 24, 2009 12:29am

Subscribe [34]
  • #46 / May 17, 2010 9:32pm

    Buso

    297 posts

    does this work in codeigniter 2 ?

  • #47 / Aug 13, 2010 4:13am

    luke holder

    71 posts

    I would also like to know if this would work in codeigniter2. I thought they will be getting rid of plugins.

  • #48 / Aug 13, 2010 4:34am

    wiredesignz

    2882 posts

    Convert to a helper for CI 2.0

  • #49 / Aug 13, 2010 4:39am

    luke holder

    71 posts

    thanks wired… are you asking or telling? hehe.

  • #50 / Oct 18, 2010 6:34am

    Abu eldahab

    22 posts

    Thanks wiredesignz for making our life easer, I used it with “Modular Extensions - HMVC”  As Library and every thing worked very fine

    Thanks Again
    Best Regards

  • #51 / Nov 09, 2010 9:50pm

    hungnm144

    7 posts

    Does your widget work with Parser Library?

  • #52 / Nov 12, 2010 11:47pm

    Andy78

    91 posts

    What do we actually have to do to convert it to a helper?

    Just remove the class and have a bunch of functions or can we use as is in the helper folder of ci 2.0?

  • #53 / Nov 13, 2010 2:31am

    wiredesignz

    2882 posts

    Change the file name to widget_helper.php and relocate the file to application/helpers.

  • #54 / Nov 13, 2010 7:57pm

    VicToMeyeZR

    14 posts

    Just to clarify, this will work, if we are using the correct widget you posted, if we are using modules?

    so /application/modules/model or /application/modules/view ?

  • #55 / Nov 13, 2010 8:27pm

    wiredesignz

    2882 posts

    Modular Extensions HMVC still allows you to use plugins.

  • #56 / Nov 13, 2010 8:31pm

    VicToMeyeZR

    14 posts

    Modular Extensions HMVC still allows you to use plugins.

    Thats true.  didn’t think about that.  ok, thanks

  • #57 / Nov 14, 2010 10:01pm

    Andy78

    91 posts

    Can a widget post data back to itself? If so how?

    For example my login page is only ever going to be a view partial so I would be as well taking the logic for logging in out of the controller putting it in the widget class and then having the widget view’s login form POST the data back to the widget class. Can that be done?

    I cant seem to get it to work.

  • #58 / Nov 14, 2010 10:55pm

    wiredesignz

    2882 posts

    Pass the data to the view and then to the widget from the inside view. Of course a widget can also use the $_POST array or $this->input->post().

  • #59 / Nov 14, 2010 11:02pm

    Andy78

    91 posts

    How do you pass the data from inside the view to widget? do you add it as params onto this:

    widget::run(‘user_login’);?

  • #60 / Nov 14, 2010 11:05pm

    Andy78

    91 posts

    in fact are you talking about an actual view or the widgets own view file?

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

ExpressionEngine News!

#eecms, #events, #releases