-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Class 'creocoder\nestedsets\NestedSetsBehavior' not found #98
Comments
look if you set class in namespace section |
In which file do I need to set this? I used the snippets from the readme and created a Menu and MenuQuery Class and in both files I use creocoder\nestedsets\NestedSetsBehavior; |
Where do you receive this error? What is shown in log? |
I created a sample Controller and call the model from this one. The Log shows: [error][yii\base\ErrorException:1] exception 'yii\base\ErrorException' with message 'Class 'creocoder\nestedsets\NestedSetsBehavior' not found' in /var/www/html/Yii2Dev/basic/models/Menu.php:22 Line 22 is 'class' => NestedSetsBehavior::className(),
the namespace I use in this model is: namespace app\models; And in my Controller likes like this:
Hope this helps you |
Check the vendor folder for extension files, maybe this extension was installed incorrectly. |
Hi,
I followed the read me and used composer for the installation and I cannot install this extension properly.
When I call
I receive Class 'creocoder\nestedsets\NestedSetsBehavior' not found
Can someone help me please? Thanks!
The text was updated successfully, but these errors were encountered: