Cases where HTML is not frowned upon inside of php? -
i know control stuff should separated view stuff, there's many cases know it's slower , over-complicating things html templates.
my question is... acceptable?
examples of i'm talking about... functions output dynamic tables, functions create input elements, , functions format text.
the con can think of, other being "ugly," don't tab out , newline inside of these functions, makes output html bit ugly. of time when face this, forget convention - functionality wins in cases.
anyone have insight or opinions on topic share?
i know it's more work, mvc pattern more maintainable in long run. dynamic tables, better create class can create size table/list/divs , pass data have view data in model/controller.
i cheat bit on small projects , mix in business logic presentation, if project ever grows more work correcting down road. unless i'm being lazy, it's not hard strict implementing code in mvc manner.
Comments
Post a Comment