Answer the question
In order to leave comments, you need to log in
How to load a fixture from an advanced template?
php yii fixture User --namespace='common\fixtures'
Answer:
Some fixtures were not found under path:
/var/www/t.dev/common/fixtures
Check that they have correct namespace "common\fixtures"
1. User
Error: No files were found for: "User".
Check that files exist under fixtures path:
"/var/www/t.dev/common/fixtures".
Answer the question
In order to leave comments, you need to log in
you have the wrong class name, fixture classes must have the Fixture suffix, for example
class UserFixture extends ActiveFixture {
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question