[eluser]Bramme[/eluser]
Hey all
I'm starting on a new app (website for a non-profit organisation) but before I get to it, I'd like some feedback first. I've made a website or three, four now with CI and with every app, I feel I learn something. This has a down and upside. The upside offcourse being: aha! I've learned something. The downside is that I think "damn, if only I knew about this when I was making my previous app!"
Anyhoo, there's a few things that this site will need that I haven't done before, I'd like to ask if anyone has done smth like this before, or anybody has some tips.
1) So far I've always used one controller for the content and multiple for the backend. Though the amount of pages was always fixed and known. Now a serious amount of the pages will be stored in the database with the ability of deleting/adding new ones. There will also be some static pages that won't be stored in the db, like the home page will be a collection of latest news, events and a welcome message and the contact page won't be editable either.
2) This one concerns number 1. I guess I'll have to make a controller for the database pages and maybe a controller for the static pages (every static page being a method simply calling a view). Or I could make one controller for the content and use a _remap function...
3) Every main page will have a sidebar. The sidebar could have a subnavigation, some text or an image gallery, widgets if you like. How would I best manage these, store them in the db etc... I'm thinking of having a database table for each widget type and then a table that stores which pages has which widgets. Sounds good?
Thanks for bothering to read this!