Welcome Guest, Not a member yet? Register   Sign In
Widgets and Modules ?
#11

[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.
#12

[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
#13

[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.




Theme © iAndrew 2016 - Forum software by © MyBB