mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-15 10:13:58 +02:00
fix php tags in template
This commit is contained in:
@@ -80,9 +80,9 @@ class Foo()
|
|||||||
**views/foo-list.php**
|
**views/foo-list.php**
|
||||||
|
|
||||||
{% highlight php %}
|
{% highlight php %}
|
||||||
<? foreach ($fooList as $row): ?>
|
<?php foreach ($fooList as $row): ?>
|
||||||
<?= $row['field1'] ?> - <?= $row['field1'] ?>
|
<?= $row['field1'] ?> - <?= $row['field1'] ?>
|
||||||
<? endforeach ?>
|
<?php endforeach ?>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
This is essentially the same as what most modern frameworks are doing, all be it a little more manual. You might
|
This is essentially the same as what most modern frameworks are doing, all be it a little more manual. You might
|
||||||
|
Reference in New Issue
Block a user