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

#3
[eluser]xwero[/eluser]
Personally don't like the use of objects in the views. Crafters example in my hands would be
Code:
//controller
$data['content'] = ($logged_in)?$this->load->view("logged_in_user_message"):$this->load->view("not_logged_in_user_message");
// view
<h1> Some html text </h1>
&lt;?php echo $content ?&gt;


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-2020 MyBB Group.