I am writing a web-app PHP. I want to use MVC pattern for this, and decided to go with CodeIgniter.
My application will have some pages which will require authentication, some pages wont.
I want to design this in a very generic way, so that there should be no code duplication.
Can any one point to some good "design/class structure" for this?