-2

Hello I know there are a lot of threads like this; I tried and still not working.

It means the: Parse error: syntax error, unexpected 'class' (T_CLASS) in /var/www/html/public_html/tutorials/mvc/app/controllers/home.php on line 5

My home.php file:

<?php

require_once "core/Controller.php"

class Home extends Controller
{
  public function Index()
  {
    echo 'home/index';
  }
}

Thank you in advance.

2
  • 2
    require_once "core/Controller.php" -> missed the semicolon at the end here
    – catcon
    Commented Oct 10, 2019 at 5:55
  • Woah, such fool situation. Thanks! Commented Oct 10, 2019 at 6:08

1 Answer 1

2

you need to add ";" after require_once()

Not the answer you're looking for? Browse other questions tagged or ask your own question.