mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-10 15:54:01 +02:00
Merge pull request #475 from peterkokot/patch-code
Fix php tags in template
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
Reference in New Issue
Block a user