does this work in codeigniter 2 ?
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
March 24, 2009 12:29am
Subscribe [34]#46 / May 17, 2010 9:32pm
does this work in codeigniter 2 ?
#47 / Aug 13, 2010 4:13am
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
Convert to a helper for CI 2.0
#49 / Aug 13, 2010 4:39am
thanks wired… are you asking or telling? hehe.
#50 / Oct 18, 2010 6:34am
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
Does your widget work with Parser Library?
#52 / Nov 12, 2010 11:47pm
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
Change the file name to widget_helper.php and relocate the file to application/helpers.
#54 / Nov 13, 2010 7:57pm
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
Modular Extensions HMVC still allows you to use plugins.
#56 / Nov 13, 2010 8:31pm
Modular Extensions HMVC still allows you to use plugins.
Thats true. didn’t think about that. ok, thanks
#57 / Nov 14, 2010 10:01pm
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
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
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
in fact are you talking about an actual view or the widgets own view file?