hi guys, I new to work Yii framework I have an error after install yii2 on click on the contact link in the header.
Fatal error : Uncaught Error: Using $this when not in object context in C:\xampp\htdocs\basic\views\site\contact.php:11 Stack trace: #0 {main} thrown in C:\xampp\htdocs\basic\views\site\contact.php on line 11
I have a solution to this problem.