torrone
|
I have a problem.
I compose a page with other small pieces of the pages
Example
TEMPLATE.HTML<html>
<body>
<div id="contenuto">
{$contenuto}
</div>
</body>
</html>
HOME.HTML<div class="pagina">
<h1>Home page</h1>
</div>
HOME.PHP<?php
session_start();
define( "BASE_DIR", substr(dirname($_SERVER['SCRIPT_FILENAME']), 0, strrpos(dirname($_SERVER['SCRIPT_FILENAME']), '/') + 1) );
include BASE_DIR . "inc/rain.tpl.class.php";
include BASE_DIR . "inc/db.php";
include BASE_DIR . "inc/elaborazione.php";
include BASE_DIR . "fun/function.php";
include BASE_DIR . "inc/costanti.php";
raintpl::configure("tpl_dir", BASE_DIR . "tpl/" );
raintpl::configure("cache_dir", BASE_DIR . "tmp/" );
$tpl = new RainTPL;
$contenuto = $tpl->draw( 'varie/HOME', $return_string = TRUE );
$tpl->assign( 'contenuto', $contenuto );
$tpl->draw( 'TEMPLATE' );
?>
everything inside the "content" is transformed<div class="box_paginasx">
<h1>Home page</h1>
</div>
is there a way to solve the problem?
erasing the line 503 fixes the problem, but there is no more converting UTF-8
thanks
Andrea
|