I follow the tutorial and after setting up everything that I get:
Fatal error: throw a "SmartyException" exception with the message "Please use parent :: __ construct () to call parent constuctor '
This is my configuration file:
<?php
define('SITE_ROOT', dirname(dirname(__FILE__)));
define('PRESENTATION_DIR', SITE_ROOT . '/presentation/');
define('BUSINESS_DIR', SITE_ROOT . '/business/');
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');
?>
My directory structure:
mydomain.com/test/include
mydomain.com/test/libs
mydomain.com/test/presentation
How can I fix this error?
source
share