Вопрос по Smarty + NOTICE

avenger_msoft

Новичок
Вопрос по Smarty + NOTICE

Привет всем!

Есть код:
1.php
PHP:
<?php
error_reporting(E_ALL); // report all errors

define('SMARTY_DIR', "./../includes/engine/Smarty/");
require_once(SMARTY_DIR . "Smarty.class.php");

class MySmarty extends Smarty {
	function MySmarty() {
		$this->Smarty();
		$this->compile_dir		= './temp';
		$this->template_dir		= './';
		$this->register_function('include_module', 'smarty_function_include_module');
	}
}

function smarty_function_include_module($params, &$smarty) {
	global $db, $modules;
	require ('2.php');
	return $bb;
}

$smarty = & new MySmarty();
$smarty->display('1.tpl');
?>
и
2.php
PHP:
<?php
	echo $ttttt; // здесь должен быть NOTICE
	$bb = 'Привет!';
?>
и
1.tpl
PHP:
<html>
{include_module module="name"}
</html>

Почему в данном коде не отображается ошибка? И в логи она тоже не пишется?

С уважение, Иван.
 

avenger_msoft

Новичок
zerkms

я вижу ошибки, display_errors on

Мало того, если процедуру smarty_function_include_module переписать следующим образом, то все ок.

PHP:
function smarty_function_include_module($params, &$smarty) { 
    error_reporting(E_ALL); // report all errors 
    global $db, $modules; 
    require ('2.php'); 
    return $bb; 
}
В чем может быть дело? Smarty перекрывает error_reporting?

-~{}~ 14.11.06 23:06:

Не ужели со смарти ни кто не работает?
 
Сверху