- Code: Select all
Call to undefined method sfContext::getController() in /home/user/www/site.com/web/index.php on line 16
I tried to figure out which file is being loaded by inserting these lines with this command in idex.php right before the dispatch call.
- Code: Select all
$reflection = new ReflectionClass('sfContext');
$classFile = $reflection->getFileName();
die($classFile);
sfContext::getInstance()->getController()->dispatch();
And it looks like file loaded is:
- Code: Select all
/home/user/www/site.com/lib/vendor/symfony1.0/test/unit/sfContextMock.class.php
I checked php version and php.ini and they are identical. I cant figure out why wrong class is being loaded or what the problem is. Any tips are greatly appreciated.
