Welcome Guest, Not a member yet? Register   Sign In
Code Separation
#7

[eluser]xwero[/eluser]
To add to Lone's response you could use php's alternative syntax then you can write the foreach as
Code:
<? foreach ($images as $image): ?>
  <img src="&lt;?=$image['file'];?&gt;" alt="" />
&lt;? endforeach ?&gt;
Other controller structures have a similar alternative syntax.


Messages In This Thread
Code Separation - by El Forum - 05-29-2008, 08:58 PM
Code Separation - by El Forum - 05-29-2008, 09:14 PM
Code Separation - by El Forum - 05-29-2008, 09:17 PM
Code Separation - by El Forum - 05-29-2008, 09:57 PM
Code Separation - by El Forum - 05-29-2008, 11:14 PM
Code Separation - by El Forum - 05-30-2008, 12:20 AM
Code Separation - by El Forum - 05-30-2008, 12:37 AM
Code Separation - by El Forum - 05-30-2008, 02:31 AM
Code Separation - by El Forum - 05-30-2008, 09:02 AM
Code Separation - by El Forum - 05-30-2008, 07:04 PM
Code Separation - by El Forum - 05-30-2008, 07:10 PM
Code Separation - by El Forum - 05-31-2008, 07:03 PM
Code Separation - by El Forum - 05-31-2008, 09:00 PM
Code Separation - by El Forum - 06-02-2008, 01:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB