PHP Classes

File: lib/Haanga/Generator/PHP.php

Recommend this page to a friend!
  Classes of Cesar D. Rodas  >  Haanga  >  lib/Haanga/Generator/PHP.php  
File: lib/Haanga/Generator/PHP.php
Role: Class source
Content type: text/plain
Description: Generator (for PHP) class
Class: Haanga
Template engine to process Django style templates
Author: By
Last change: Fixed iterating over an object with foreach
Merge branch 'release/1.0.5'
variable (scope variable) now has a random name
for in template won't generate PHP warning when iterating over empty array

In template, before {% for item in items %} I had to check
if items had at least one element, if I didn't I got "Invalid argument supplied for foreach() in".
Date: 3 years ago
Size: 20,901 bytes

You need to be a registered user and login to get this file.

1,603,692 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on: