[eluser]Unknown[/eluser]
Refreshing this old thread, I'd like to say that IMO this "pattern" is very strange and harmul, and leads to unexpected errors and results, being very difficult to debug. For example, having controller with some public fields if you create new model object and you try to insert it, you will have an SQL exception (inserting not existing fields into table). It is very confusing - where are these fields from?
[quote author="mondras" date="1278529214"]According to the following statement you said there are plenty of ways to share data across the application, could you give me some pointers on this?[/quote]
The best way of doing it, used in many enterprise-class applications is to provide singleton object, having access to whole context, and enabling using of context objects. And, in fact, such singletion exists in code igniter, so why not to promote this way of accessing objects in application?
For Jamie Rumbelow, please don't read my post if you don't like it. There are plenty of other posts here.