[eluser]BlueScreenJunky[/eluser]
Hello everyone. First of all I'd like to say that I'm very new to OOP and CodeIgniter, so it's probably a stupid question, so please bear with me ^^
Anyway, I'm creating a simple blog with codeigniter, and so far everything was fine : I have a database with posts and comments, a model to insert/get the posts, one to insert/get comments, a controller, and views to display all that as html.
My controller is able to get the data from the model and pass it directly to the view, and then the view iterates over the various blog posts and comments which is insanely convenient...
Now the thing is, I'd like to use the typography helper, smiley helper, and add a few things of my own before displaying the posts/comments. Where am I supposed to do that ? I have a feeling it's the controller's job, but then it means I have to iterate over all the results in the controller, then rebuild an object or an array myself, and pass it to the view, which is far less convenient.
It would seem much simpler to me to do the formatting directly in the view, while I'm iterating over my posts and comments, but I guess that would make the whole MVC architecture pointless.
Any advice ? Am I even asking the right questions ?
Thanx !