本文整理汇总了PHP中XTemplate::rparse方法的典型用法代码示例。如果您正苦于以下问题:PHP XTemplate::rparse方法的具体用法?PHP XTemplate::rparse怎么用?PHP XTemplate::rparse使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XTemplate
的用法示例。
在下文中一共展示了XTemplate::rparse方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: XTemplate
<?php
/*
example 7
demonstrates file includes
*/
require "xtpl.p";
$xtpl = new XTemplate("ex7.xtpl");
$xtpl->assign(FILENAME, "ex7-inc.xtpl");
$xtpl->rparse("main.inc");
$xtpl->parse("main");
$xtpl->out("main");
/*
Revision 1.1 2004/05/27 05:30:47 sugarjacob
Moving project to SourceForge.
Revision 1.1 2004/05/19 01:48:20 sugarcrm
Adding files with binary option as appropriate.
Revision 1.2 2001/03/26 23:25:02 cranx
added keyword expansion to be more clear
*/
示例2: XTemplate
<?php
/**
* example 7
* demonstrates file includes
*
* @package XTemplate_Examples
* @author Barnabas Debreceni [cranx@users.sourceforge.net]
* @copyright Barnabas Debreceni 2000-2001
* @author Jeremy Coates [cocomp@users.sourceforge.net]
* @copyright Jeremy Coates 2002-2007
* @see license.txt LGPL / BSD license
* @link $HeadURL: https://xtpl.svn.sourceforge.net/svnroot/xtpl/trunk/ex7.php $
* @version $Id: ex7.php 16 2007-01-11 03:02:49Z cocomp $
*/
include_once './xtemplate.class.php';
$xtpl = new XTemplate('ex7.xtpl');
$xtpl->assign('FILENAME', 'ex7-inc.xtpl');
// Language is set to English
$xtpl->assign_file('LANGUAGE', 'ex7-inc-eng.xtpl');
// Uncomment the line below to set language to German
//$xtpl->assign_file('LANGUAGE', 'ex7-inc-de.xtpl');
$xtpl->rparse('main.inc');
$xtpl->parse('main');
$xtpl->out('main');
示例3: XTemplate
<?php
/**
* example 4
* demonstrates recursive parse
*
* @package XTemplate_Examples
* @author Barnabas Debreceni [cranx@users.sourceforge.net]
* @copyright Barnabas Debreceni 2000-2001
* @author Jeremy Coates [cocomp@users.sourceforge.net]
* @copyright Jeremy Coates 2002-2007
* @see license.txt LGPL / BSD license
* @link $HeadURL: https://xtpl.svn.sourceforge.net/svnroot/xtpl/trunk/ex4.php $
* @version $Id: ex4.php 16 2007-01-11 03:02:49Z cocomp $
*/
include_once './xtemplate.class.php';
$xtpl = new XTemplate('ex4.xtpl');
$xtpl->rparse('main');
$xtpl->out('main');
示例4: XTemplate
<?php
/*
example 4
demonstrates recursive parse
*/
require "xtpl.p";
$xtpl = new XTemplate("ex4.xtpl");
$xtpl->rparse("main");
$xtpl->out("main");
/*
Revision 1.1 2004/05/27 05:30:47 sugarjacob
Moving project to SourceForge.
Revision 1.1 2004/05/19 01:48:20 sugarcrm
Adding files with binary option as appropriate.
Revision 1.2 2001/03/26 23:25:02 cranx
added keyword expansion to be more clear
*/