[eluser]jedd[/eluser]
[quote author="crispinatari" date="1244907857"]
what code do you use in the model and view for your example though? is ControllerExample meant for Site_Template for instance.
[/quote]
That's a huge question. Model code will be doing modelly things, such as reading or writing to a database.
I can't understand your second question there.
Quote:this is doing my head in. and what does $data['var1'] = ... represent?
The first variable that you might want to send to your view. var2 - the second. And so on.
They'll appear in the view as $var1, $var2 .. and so on.
Have you
really read the CI User Guide - getting started, and the Model, View and Controller sections?