[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 3 /** 4 * 5 * Tests filters and plugins 6 * 7 * @version $Id: 5_filters.php 18360 2005-05-26 19:38:09Z mipmip $ 8 * 9 */ 10 11 12 error_reporting(E_ALL); 13 14 require_once 'Savant2.php'; 15 16 $conf = array( 17 'template_path' => 'templates', 18 'resource_path' => 'resources' 19 ); 20 21 $savant =& new Savant2($conf); 22 23 // set up filters 24 $savant->loadFilter('colorizeCode'); 25 $savant->loadFilter('trimwhitespace'); 26 $savant->loadFilter('fester', null, true); 27 28 // run through the template 29 $savant->display('filters.tpl.php'); 30 31 // do it again to test object persistence 32 $savant->display('filters.tpl.php'); 33 34 // do it again to test object persistence 35 $savant->display('filters.tpl.php'); 36 37 echo "<hr />\n"; 38 echo "<pre>"; 39 print_r($savant); 40 echo "</pre>"; 41 42 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |