I
I
ipokos2018-07-07 18:14:55
Yii
ipokos, 2018-07-07 18:14:55

How to fix Fatal error: Class 'Controller' not found error in yii 1?

Fatal error: Class 'Controller' not found in /var/www/domain.loc/public_html/protected/controllers/SiteController.php
No brainer that the Controller class was not found.
But this project works and was deployed in exactly the same way on another machine and everything is ok.
Just in case, I tried to include the required class or import ... the same error.
Has anyone experienced this? how can you decide?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2018-07-09
@webinar

ipokos , and what kind of evil people forced you to work with an outdated version of yii? I worked with the first one, but I haven’t touched it for five years, I don’t even remember.
But still, it seems to me not Controller, but СController:
class SiteController extends CController

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question