I have a controller which has several methods which should all share common informations. Let's say my URI format is like this:
http://server/users/id/admin/index
http://server/users/id/admin/new
http://server/users/id/admin/list
http://server/users/id/admin/delete
I need to retrieve some informations from the database for id
and have them available for all methods instead of writing a line in each of them to call the model. How can I do this?
id
into play: I know how to get it inside methods but not in the constructor. By the way, you can use PHP5 syntax too with codeigniter. – Lapboard