本文整理汇总了PHP中Haanga::setCacheDir方法的典型用法代码示例。如果您正苦于以下问题:PHP Haanga::setCacheDir方法的具体用法?PHP Haanga::setCacheDir怎么用?PHP Haanga::setCacheDir使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Haanga
的用法示例。
在下文中一共展示了Haanga::setCacheDir方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: microtime
<?php
/**
* Simple example rendering a user list
* ------------------------------------
*
* @credit - adapt from ptemplates sample
*/
require "../lib/Haanga.php";
Haanga::registerAutoload();
Haanga::setCacheDir('tmp/');
Haanga::setTEmplateDir('inheritance/');
$time_start = microtime(true);
Haanga::Load('page.html', array('title' => microtime(TRUE), 'users' => array(array('username' => 'peter', 'tasks' => array('school', 'writing'), 'user_id' => 1), array('username' => 'anton', 'tasks' => array('go shopping'), 'user_id' => 2), array('username' => 'john doe', 'tasks' => array('write report', 'call tony', 'meeting with arron'), 'user_id' => 3), array('username' => 'foobar', 'tasks' => array(), 'user_id' => 4))));
echo "in " . (microtime(true) - $time_start) . " seconds\n<br/>";