EllisLab text mark
Advanced Search
1 of 2
1
   
widget with CI loader
Posted: 29 October 2010 05:08 PM   [ # 11 ]   [ Rating: 0 ]
Avatar
Joined: 2008-09-11
760 posts

its working fine with CI2 also i have checked that for CI2 you have to put MY_Loader file from libraries to core folder, and for model you have to extend with CI_Model its working really fine

 Signature 

CI,JQuery,Google Maps | widget with CI loader | Thumbnail, Image Resize, Image Crop Helper | CI shortcode

 
Posted: 30 October 2010 01:30 PM   [ # 12 ]   [ Rating: 0 ]
Joined: 2010-06-27
140 posts

good job mate, will be integrating the changes at some point today.

 Signature 

“I Reject Your Reality and Substitute My Own” - Adam Savage, M5 Inc

 
Posted: 31 October 2010 11:27 PM   [ # 13 ]   [ Rating: 0 ]
Avatar
Joined: 2010-07-05
7 posts
umefarooq - 29 October 2010 09:08 PM

its working fine with CI2 also i have checked that for CI2 you have to put MY_Loader file from libraries to core folder, and for model you have to extend with CI_Model its working really fine

Thanks. I’ll try it

 
Posted: 01 November 2010 02:18 AM   [ # 14 ]   [ Rating: 0 ]
Avatar
Joined: 2008-03-19
164 posts

In HMVC I can create 2 or more modules folders, as example: one in application directory and one in applicataion/third_party directory. Can your widget do the same thing? It would be nice if this feature applied in your widget. Thanks

 Signature 

AutoACL - Access Control Library++ with Very Private Page (VPP) Control
AutoCRUMB - The simplest breadcrumb helper ever
Autocrumb on bitbucket
Integrate CI 2 with Eclipse
———————————————————————————————-
Website: ardinoto.blogspot.com

 
Posted: 08 November 2010 07:02 AM   [ # 15 ]   [ Rating: 0 ]
Avatar
Joined: 2010-07-05
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!

 
Posted: 10 November 2010 12:12 AM   [ # 16 ]   [ Rating: 0 ]
Avatar
Joined: 2008-09-11
760 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.

 Signature 

CI,JQuery,Google Maps | widget with CI loader | Thumbnail, Image Resize, Image Crop Helper | CI shortcode

 
Posted: 10 November 2010 07:19 AM   [ # 17 ]   [ Rating: 0 ]
Avatar
Joined: 2010-07-05
7 posts

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

 
Posted: 18 January 2011 07:35 AM   [ # 18 ]   [ Rating: 0 ]
Avatar
Joined: 2008-09-11
760 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

 Signature 

CI,JQuery,Google Maps | widget with CI loader | Thumbnail, Image Resize, Image Crop Helper | CI shortcode

 
Posted: 23 January 2011 10:29 AM   [ # 19 ]   [ Rating: 0 ]
Avatar
Joined: 2009-06-19
6596 posts

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

This way they could be used anywhere.

InsiteFX

 Signature 

Certified State of CT Computer Programming Teacher.
Custom Designed Icons, eBook Covers Software Boxes. CD, DVD Etc. New iPhone® Tab Bar Icons and iPhone® Applications Icons.

Skype: insitfx

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

 
Posted: 24 January 2011 05:28 AM   [ # 20 ]   [ Rating: 0 ]
Avatar
Joined: 2008-09-11
760 posts

you can access widgets from widget main directory along with modular

 Signature 

CI,JQuery,Google Maps | widget with CI loader | Thumbnail, Image Resize, Image Crop Helper | CI shortcode

 
1 of 2
1