Skip to content

Commit

Permalink
fix php tags in template
Browse files Browse the repository at this point in the history
  • Loading branch information
petk committed Nov 26, 2014
1 parent 0c3989e commit 8cf4232
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _posts/07-02-01-Interacting-via-Code.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -93,4 +93,4 @@ for developers just getting used to the concept of interacting with databases.

[MVC]: http://code.tutsplus.com/tutorials/mvc-for-noobs--net-10488
[PHPBridge]: http://phpbridge.org/
[Creating a Data Class]: http://phpbridge.org/intro-to-php/creating_a_data_class
[Creating a Data Class]: http://phpbridge.org/intro-to-php/creating_a_data_class

0 comments on commit 8cf4232

Please sign in to comment.