Welcome Guest, Not a member yet? Register   Sign In
Interface functions from views
#1

[eluser]Unknown[/eluser]
Just getting started with CodeIgniter and finding it great and pretty easy to get to grips with. I am a little confused about passing objects to a view. From the documentation it appears that CI takes object variables and converts them to an array, but surely this means you've moved outside good principles of OOP, where variables should be accessed by interface functions rather than directly?

Am I missing something obvious, misunderstanding the way CI impements MVC or is this just something that needs to be dealt with?

Many thanks.




Theme © iAndrew 2016 - Forum software by © MyBB