Fatal error: Class 'Html' not found in


I’m following this tutorial: how-to-program-with-yii2-getting-started–cms-22440 and when I want to complete step called: “Building the Say Hello World! Action” I have following error when I want to visit this site specified in tutorial: Fatal error: Class ‘Html’ not found in \wamp\www\basic\views\site\say.php on line 4

I’m not experienced with programming, so please help :)

You must use namespace:


use yii\helpers\Html;

See also: http://php.net/manual/en/language.namespaces.php