Add Option like this

21 views
Skip to first unread message

TecnoWeb L.L.C

unread,
Dec 5, 2011, 10:04:24 AM12/5/11
to H2o template PHP
Hello Taylor,
i like ask question about use it
<?php
require_once PATH_LIBRARIES.'h2o/h2o.php'; // LOADING LIBRARY H2O
$skin = new H2o(); // define class h2o
/* DEFINE OPTION */
$skin->getOptions(
array("loader"=>'file',
"cache" => true,
'cache_dir' => PATH_CACHE.'compiled',
"cache_prefix" => 'test_',
"cache_ttl" => '3600',
'searchpath' => true,
'autoescape' => true
)
);
$skin->loadTemplate($_layoutFile.".demi"); // LOADING TEMPLATES
?>

so my example dimostrate i want first define library and option and
afther loading template engine where i want is possible to do it?

Reply all
Reply to author
Forward
0 new messages