[eluser]4ever[/eluser]
[quote author="osci" date="1305718273"]I was referring to your example of "instead using one string" at comment #8 above
And you posted it to demonstrate what is bad and what is good in this topic.
Doesn't that lead visitors that this is good code? If so where should they place it?
You used code from what tutorial. Was your #8 post irrelevant?[/quote]
I don't have reference to that tutorial. I have it in my PC downloaded. I realize that the point "instead using one string" can have some weak point but has also a benefit. Maybe you prefer different method but it's possible more people use more solutions. I ain't met with CI enough to judge whether this approach is good to use with this framework. However that part of my comment that emphases using many times <?PHP ?> in view it looks silly to me but it's on each own preferences... I took the code just to illustrate what I talk about and as I said I took it from somebody else and remade it. For MVC I use slightly different version with doesn't use "all in one string" but uses echo. In fact I am not sure if is possible to do it in CI in the way how I showed above. But I ain't gonna do tutorials, so I guess that the person who is gonna do it knows what is good, what is bad and what is best...
When I said I hate some style of writing. It doesn't mean I hate the tutorials. I am thankful for this job. An even the tut needn't be perfect, every one can rewrite it to his style.
PS: Tut I use is CodeIgniterFromScratchDay 5