Good afternoon guys, how about a problem with this line of code, does anyone know why?
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/storage/2/3e/eb/noticiasdasgerais/public_html/yteste/Controller/index.php on line 7
Excerpt from line 7:
public function indexAction() {
if (isset($_POST['busca']) && !empty($_POST['busca'])) {
$busca = addslashes($_POST['busca']);
$this->autos = (new ModelAuto)->get_all_busca($busca); //Linha 7
} else {
$this->autos = (new ModelAuto)->get_autos_destaque();
}
$dados = $this->get_autos();
Tpl::View("site/index", $dados);
}
Thanks in advance!