oncesk / yii-node-socket

66 stars 46 forks source link

Fatal error: Class 'yii\base\Component' not found in /opt/lampp/htdocs/<app>/protected/extensions/yii-node-socket/lib/php/NodeSocket.php on line 11 #87

Open khansudarsan opened 7 years ago

khansudarsan commented 7 years ago

I have followed step by step as in your instruction but my application could not load "NodeSocket" class. An fatal error has occurred. BTW, I am using yii1 and my framework folder is outside of the application. Framework path is as follows: "/opt/lampp/htdocs/yii/framework". Thanks in advance.

chandrantwins commented 7 years ago

Its simple you are using yii2 version of yii-node-socket inside your yii1 version. So please download yii1 version and use it..

Please look at the file NodeSocket.php first line should be require_once 'frames/IFrameFactory.php'; (yii1 version) it should not be namespace YiiNodeSocket; (yii2 version)

if you need work with yii1 you can do it from (https://github.com/oncesk/yii-node-socket/tree/2.0.0)