I have a small improvement for your php templating system.
Instead of
Code: Select all
<?php if ($stock == 0) { ?>
<p>Out of stock you idiot.</p>
<p>more html</p>
<?php } else { ?>
<p>Today is your lucky day, loser.</p>
<p> We have <?php echo $STOCK; ?> of these in stock!</p>
<?php } ?>
Code: Select all
<?IF($STOCK==0:?>
<p>Out of stock you idiot.</p>
<p>more html</p>
<?ELSE:?>
<p>Today is your lucky day, loser</p>
<p> We have <?=$STOCK?> of these in stock!</p>
<?ENDIF?>
It's not necessarily an "improvement", but I think it makes templates easier to read.
I guess the only drawback is that the if: elseif: endif syntax isn't standard, and might become unsupported in future php....and of course you shouldn't really use shorttags...
Keep up the good work!