|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-03-11 20:29 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 02:00:01 2025 UTC |
require_once 'HTML/Template/IT.php'; $tpl = new HTML_Template_IT(); $tpl->setTemplate('Outer: {outer} <!-- BEGIN inner_block -->Inner: {outer}, {inner}<!-- END inner_block -->', false, true); $tpl->setVariable(array( 'outer' => 'foo', 'inner' => 'bar' )); $tpl->show(); This script outputs Outer: foo Inner: {outer}, bar instead of Outer: foo Inner: foo, bar