yii2 gii CRUD Generator error - Class 'Message' does not exist or has syntax error
问题 I'm creating a basic text only private messaging system for a website using yii2 advanced. I'm using the gii model and CRUD generators but have encountered a problem with the CRUD generation after I have created the model class. I'm wondering whether it might be an issue with the foreign keys on the message table which have a one to many relationship with the users table (i.e. one user can have many messages). When I attempt to run the CRUD generator with- Model Class- Message Search Model