How should I divide my code using CodeIgniter?

I have searched the web and found only styling code posts. I want to write site using Code Igniter and I wonder how should I maintain my code.

For example:

Should I use one class for static pages and methods for each page or separate file for every static page. Should I use the same file to load dynamic pages or different one?

Can I use some common code and include it automatically to every class?

How can I have lets say header_view footer_view etc and then just load->view(‘whatever’) and footer, header and other files would load automatically. Maybe there is better way to do that?

In generall what are the best practices when coding using CodeIgniter.

Leave a Reply


Hire Me
Follow Me!
Most Popular Articles & Pages
Because your vote is Important
Sorry, there are no polls available at the moment.