![]() |
widget with CI loader - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: widget with CI loader (/showthread.php?tid=32300) |
widget with CI loader - El Forum - 10-29-2010 [eluser]umefarooq[/eluser] let me check with C1 2.0 will update you widget with CI loader - El Forum - 10-29-2010 [eluser]umefarooq[/eluser] 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 widget with CI loader - El Forum - 10-30-2010 [eluser]Rolly1971[/eluser] good job mate, will be integrating the changes at some point today. widget with CI loader - El Forum - 10-31-2010 [eluser]hungnm144[/eluser] [quote author="umefarooq" date="1288400909"]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[/quote] Thanks. I'll try it widget with CI loader - El Forum - 10-31-2010 [eluser]ardinotow[/eluser] 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 widget with CI loader - El Forum - 11-08-2010 [eluser]hungnm144[/eluser] 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! widget with CI loader - El Forum - 11-09-2010 [eluser]umefarooq[/eluser] 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. widget with CI loader - El Forum - 11-10-2010 [eluser]hungnm144[/eluser] That's great! Thanks @umefarooq. I did it. It worked in my CI2.0. Thanks for your support! widget with CI loader - El Forum - 01-18-2011 [eluser]umefarooq[/eluser] 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 widget with CI loader - El Forum - 01-23-2011 [eluser]InsiteFX[/eluser] I think it would be better to code it to use just a widgets directory. This way they could be used anywhere. InsiteFX |