ИБ
Ирина Белова

Помогите исправить синтаксическую ошибку в PHP Parse error: syntax error, unexpected '(', expecting T_STRING or T_VARIA



ошибка Parse error: syntax error, unexpected '(', expecting T_STRING or T_VARIABLE or '$' in
ошибка показывает на эту строчку parent::() ;
template_dir = TPL . 'src' . DS;
$this->compile_dir = TPL . 'cmpl' . DS;
$this->cache_dir = TPL . 'cch' . DS;
}
}

?>

include( LIB . 'Smarty' . DS . 'Smarty.class.php' );
class Tpl extends Smarty {
function __construct( ) {
parent::() ;
$this->template_dir = TPL . 'src' . DS;
$this->compile_dir = TPL . 'cmpl' . DS;
$this->cache_dir = TPL . 'cch' . DS;
}
}

Елена Авдиенко
Елена Авдиенко

возможно вы имели ввиду parent::__construct()

Похожие вопросы
Parse error: syntax error, unexpected T_ELSE in /home/u47601/сайт/check_login.php on line 81. 1.
Ошибка Parse error: syntax error, unexpected T_STRING
Заказ сайт на хостин hut.ru - выдает ошибку Parse error: parse error, unexpected '&', expecting T_VARIABLE, что делать?
в php пишет ошибку "Parse error: syntax error, unexpected T_VARIABLE, expecting.. код внутри
Syntax error: " (" unexpected в Ubuntu
Parse error: syntax error, unexpected T_STRING in
Ошибка в PHP коде "Parse error: syntax error, unexpected '<' ". Имя:
Помогите найти ошибку Выдаёт сообщение "Syntax error: "fi" unexpected(expecting "then")"
Parse error: syntax error, unexpected ';' in /home/u550788260/public_html/files/upload.php on line 15 ПОМОГИТЕ
Parse error: syntax error, unexpected T_STRING