![]() |
Widgets and Modules ? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Widgets and Modules ? (/showthread.php?tid=30516) Pages:
1
2
|
Widgets and Modules ? - El Forum - 05-17-2010 [eluser]bretticus[/eluser] [quote author="Buso" date="1274173823"]sure thing. I thought CI 2.0 was going to have modules out of the box, but it seems like it wont. ps: check the link I posted. Modular Separation and Widgets share the same author[/quote] Ah, that's probably because the code only exists in that post. Looks cool. Must read. Widgets and Modules ? - El Forum - 05-17-2010 [eluser]Buso[/eluser] I just want to have my own CI implementation which has everything I need for most sites. If I ever finish this, I guess it will look a lot like a CMS, but anyway I'm learning a lot in the meantime so its not a complete waste. My bigger problem now is 'coupling'. I didn't care about coupling (what I have so far can't be separated into working units, and that sucks), but I can't blame myself, i didn't even know that word when I started Widgets and Modules ? - El Forum - 05-17-2010 [eluser]bretticus[/eluser] I think this notion of partials comes from the Rails world. CI's simple solution is helpers. However, wiredesignz's widget implementation is much better suited for "coupling." And I suppose a view must be stipulated (or we just need a helper.) I usually just load another view from within a view for things like this. However, again, the widgets implementation is better suited for modularity. I see what you are going for and I'm glad you found the post with the code you needed. I think you might be interested in this PHP framework that I uncovered tonight as it is closely modeled after Rails. It has partials built into the framework. Might be interesting to see how they have implemented them. Cheers. |