[cvs] commit: horde/lib Template.php

Mike Cochrane mike@graftonhall.co.nz
Wed Nov 20 12:20:13 2002


mikec       2002/11/20 04:20:13 PST

  Modified files:
    lib                  Template.php 
  Log:
  Change the way ifs are stored so that you can use an array as a conditional. Allows things like this:
  
  $template = &new Horde_Template();
  $template->set('search_results', $search_results, true);
  echo $template->parse('
      <if:search_results>
          <loop:search_results>
              <tag:search_results />
          </loop:search_results>
      <else:search_results>
          No Records Found
      </else:search_results>
      </if:search_results>
  ');
  
  Revision  Changes    Path
  1.6       +10 -7     horde/lib/Template.php

  Chora Links:
  http://cvs.horde.org/diff.php/horde/lib/Template.php?r1=1.5&r2=1.6&ty=u


More information about the cvs mailing list