Fairly straightforward question:
I know that Codeigniter is a MVC framework - however what design pattern is Codeigniter using?
From first look it seems like Facade, but I could be wrong.
Edit:
Perhaps I should describe Codeigniter for those who don't use it.
In Codeigniter you have a concept of a Controller and a Model, which each has their own separate folder. In each of the folders you create a file:
cart.php:
<?php
class Cart {
//...
}
?>
Then you can also have a model:
<?php
class User {
function login(){...}
}
?>
Inside of the class Cart, you can use the login function in User by simply using $this->user->login()
I find this interesting because the framework makes an object of the User object and the programmer does not.