5
votes
2answers
815 views

Critique My Codeigniter Custom CMS Pages Model

I am currently developing a custom CMS being built on top of Codeigniter and was wondering if you can spot any flaws in my page fetching model code. The page fetching model is not entirely complete ...
3
votes
2answers
167 views

Am I using MVC Codeigniter correctly?

I'm currently writing Report's system. I have about 20 different users with different access. Am I doing it correctly? Can I improve my style of writing this code? All my reports based on the same ...
2
votes
1answer
1k views

Where to put menu items in MVC with PHP ? Model or controller?

This is my first attempt with MVC and I almost get it but a small thing bothers me. I have this controller in CodeIgniter: <?php class Page extends CI_Controller { public function ...
2
votes
1answer
376 views

CodeIgniter nav/menu insecurities

I more or less asked the same questions on stackoverflow.com, but maybe this is more for this forum. I have a hard time getting to grips with how to implement a top navigation (common for the whole ...
1
vote
2answers
323 views

Controller for an Administrator User, can this be improved? (codeigniter)

I want to write better code. This is a simple controller class for an administrator login. Are there conventions or tips in PHP to rewrite this code and improve it? <?php class Administrators ...
0
votes
1answer
66 views

CodeIgniter Model - Correct/Secure Usage?

I'm working on my first large CodeIgniter project (and one of my first MVC projects), and I want to get some feedback on the techniques I've used so far in one of my models. Here's the code: <?php ...