Welcome Guest, Not a member yet? Register   Sign In
Using partial views
#21

[eluser]Dam1an[/eluser]
You may find them arbitrary, but they're all well documented in the user guide Smile
#22

[eluser]Nexus Rex[/eluser]
Good point: well documented = acceptable to be a little arbitrary.
#23

[eluser]Nexus Rex[/eluser]
Using this "Convention Over Configuration" setup how do you handle bad requests for missing Methods?

Instead of the usual 404 error, I now get the debug page.
#24

[eluser]SpooF[/eluser]
[quote author="Madmartigan1" date="1241814507"]Hello,

I'm fairly new to CI and wondering what the best way to do this is.

I have a controllers/models/views set up for viewing/editing a database table called "events". OK, I have a view for events that shows the entire list.
What I would like to do is show the list on every page in my app (in a sidebar). If I just load the view file, the db values are of course not getting passed to it because the conroller/model isn't loaded. I'm not restricted to using any particular method, I'm just wondering the best way to do it.
Do I have to write a separate method/view? Normally (without CI) I would just "include" the event list file, which would have already "included" the sql stuff.

I'm sure the answer is basic CI usage, so thanks in advance.[/quote]

Tell me if Im overlooking this but wouldn't you simple just auto load your model and then call the request in your constructor and add it to your data array (using the standard view loader)?
#25

[eluser]mikevu[/eluser]
Great post.
I like symfony and Zend frame work, I am a newbie CI, it is very light.

Thank you so much,




Theme © iAndrew 2016 - Forum software by © MyBB