Welcome Guest, Not a member yet? Register   Sign In
is collapsible <div> in a view - legal MVC pattern?
#1

[eluser]ICEcoffee[/eluser]
Hi, I'm just getting into using MVC and codeigniter and I'd like to know if it is 'acceptable' MVC practice to put code into a 'view' file to determine if a <div> is to be displayed or not?
#2

[eluser]Pascal Kriete[/eluser]
If I remember correctly, the wording for the definition of a view, is that it contains "presentation logic". So yes, basic loops and if statements are totally fine.




Theme © iAndrew 2016 - Forum software by © MyBB