我下面的教程,并设置了一切之后,我的:Smarty的例外:“请使用父:: __结构()调用父类的构造”
Fatal error: Uncaught exception 'SmartyException' with message 'Please use parent::__construct() to call parent constuctor'
这是我的配置文件:
<?php
// SITE_ROOT contains the full path to the tshirtshop folder
define('SITE_ROOT', dirname(dirname(__FILE__)));
// Application directories
define('PRESENTATION_DIR', SITE_ROOT . '/presentation/');
define('BUSINESS_DIR', SITE_ROOT . '/business/');
// Settings needed to configure the Smarty template engine
define('SMARTY_DIR', SITE_ROOT . '/libs/smarty/');
define('TEMPLATE_DIR', PRESENTATION_DIR . 'templates');
define('COMPILE_DIR', PRESENTATION_DIR . 'templates_c');
define('CONFIG_DIR', SITE_ROOT . '/include/configs');
?>
我的目录结构是:
mydomain.com/test/include
mydomain.com/test/libs
mydomain.com/test/presentation
我怎样才能解决这个问题?
错误消息是否也不告诉你错误在哪一行? – 2011-06-10 13:10:35
这个PHP4代码是否在PHP5环境中运行? – alex 2011-06-10 13:11:43
不,它是在PHP5环境 – Bob 2011-06-10 13:25:04