Fatal error: Class 'Yii' not found

Hello. I’m a newbie at Yii2. I have an exciting project, and i want to run it on my localhost.

The \web\index.php is working well, but the other index.php and all other php files are not working.

im getting an error while im trying to see the web pages.

the error is Fatal error: Class ‘Yii’ not found in C:\wamp64\www\public_html\views\member\login.php on line 7

does anyone knows how to fix it?

i think that the problem is mybe the namespace in the files or the autoload.php file, but im not sure how to solve this problem.

see attached screenshots.

wating for ur responses!

Thanks

http://www.yiiframework.com/doc-2.0/guide-start-workflow.html#running-applications