• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Views vs. Models

#1
[eluser]Iverson[/eluser]
I have a function that checks to see if the visitor is logged in. Of course it returns true or false. Now I know that the logic goes into the models and controllers, but it sucks when you have to "echo" tables, divs, spans, etc. I don't want to add too much logic to my view files, but I would much rather be able to see the rendered tables. So what I decided to do was to add the "if logged in" function to the view file and throw the specific HTML in there instead of just a barebone HTML template and send the specific HTML from the model. Opinions? Or am I just missing something?


Messages In This Thread
Views vs. Models - by El Forum - 08-25-2008, 07:27 AM
Views vs. Models - by El Forum - 08-28-2008, 02:25 AM
Views vs. Models - by El Forum - 08-28-2008, 02:37 AM
Views vs. Models - by El Forum - 08-28-2008, 08:00 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.