Welcome Guest, Not a member yet? Register   Sign In
Views vs. Models
#2

[eluser]Crafter[/eluser]
It look like the issues is merely one of reducing the complexity of the view files. Am I on the right path here?

You can't avoid the complexity, you'll have to reduce it to an appropraite level of readability.

For example you could call a view from another view:

Code:
<?  if ($logged_in) {
<h1> Some html text </h1>
   &lt;? $this->load->views("logged_in_user_message"):
   <h1> Some html text </h1>
&lt;?  }  else  { ?&gt;
   <h1> Some html text </h1>
   &lt;? $this->load->views("not_logged_in_user_message"):
<h1> Some html text </h1>
&lt;? } ?&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



Theme © iAndrew 2016 - Forum software by © MyBB