yii-node-socket icon indicating copy to clipboard operation
yii-node-socket copied to clipboard

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

Open khansudarsan opened this issue 8 years ago • 1 comments

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.

khansudarsan avatar Jun 29 '17 10:06 khansudarsan

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)

chandrantwins avatar Jul 08 '17 11:07 chandrantwins