Welcome Guest, Not a member yet? Register   Sign In
New to code igniter and the view(s) are killing me
#6

[eluser]John_Betong[/eluser]
I use this debugging technique in my form that gives an easy option do either show or hide partial content:

to show change the 0 (ZERO) to any numeric value:
Code:
<?php if(0) { include '_partial_footer.php'; } ?>

// OR even better so that the page validates and does not show empty divs:

<?php if (0) { ?>
<div id='my_footer'>
   &lt;?php include '_partial_footer.php'; ?&gt;
</div>
&lt;?php } ?&gt;
&nbsp;
&nbsp;
&nbsp;


Messages In This Thread
New to code igniter and the view(s) are killing me - by El Forum - 09-06-2010, 11:52 AM
New to code igniter and the view(s) are killing me - by El Forum - 09-06-2010, 12:05 PM
New to code igniter and the view(s) are killing me - by El Forum - 09-06-2010, 02:13 PM
New to code igniter and the view(s) are killing me - by El Forum - 09-06-2010, 03:46 PM
New to code igniter and the view(s) are killing me - by El Forum - 09-06-2010, 07:08 PM
New to code igniter and the view(s) are killing me - by El Forum - 09-06-2010, 08:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB