[eluser]Swedie[/eluser]
You guys are right that I am probably not following the lines of what the MVC architecture is about.
I'll try and explain my application.
I am loading the header and footer from another website of ours with a completely different system. I've marked the HTML with a bunch of markers where I can go in and put, get and replace stuff. Once done this is done, it's outputted as my header and footer in my view file. Between the header and footer I put my own new content.
In one certain method I include a large system, that is not in the MVC framework completely and it's one class that loads a lot of other classes. Everything works fine except it's ISO-8859-1 on all files and data. So I have to put a header in the file of that class that tells me it's ISO-8859-1 and thus doing so, I need to runt utf8_decode or all Swedish characters are turned into symbols.
All this works now, as I changed some code in the controller that deals with it now. But it's really only a temporary thing, so I rather wished it wasn't in the controller at all, but in the method of the model that "imports" that old system of mine with the wrong characters encoding.
In the next two posts I'm showing you my still small controller for a system of ours that will evolve to something much larger in the near future.
I welcome and actually want you you to criticize my code and give suggestions both on how to improve the PHP coding but also how to improve the use of CI's MVC framework. Rather to it right now, when there's little code than going back later and correct a lot of code.