Yii Framework Forum: Fatal error: Class 'Yii' not found - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Fatal error: Class 'Yii' not found Rate Topic: -----

#1 User is offline   yii2awsome 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 13-August 17

Posted 13 August 2017 - 05:06 AM

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

Attached File(s)


0

#2 User is offline   tri 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 1,824
  • Joined: 20-November 08
  • Location:Stockholm, Sweden

Posted 13 August 2017 - 07:12 AM

http://www.yiiframew...ng-applications
Don't forget to read The Definitive Guide to Yii (1.1 en) (1.1 sv) (2.0 en) | The class reference (1.1) (2.0) has the details
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users