Merge pull request #475 from peterkokot/patch-code

Fix php tags in template
This commit is contained in:
Phil Sturgeon
2014-11-26 18:34:54 +00:00

View File

@@ -80,9 +80,9 @@ class Foo()
**views/foo-list.php**
{% highlight php %}
<? foreach ($fooList as $row): ?>
<?php foreach ($fooList as $row): ?>
<?= $row['field1'] ?> - <?= $row['field1'] ?>
<? endforeach ?>
<?php endforeach ?>
{% endhighlight %}
This is essentially the same as what most modern frameworks are doing, all be it a little more manual. You might