liysd
liysd

Reputation: 4623

How to obtain all CActiveRecords in yii

I would like to get name of all CActiveRecords in my app, is it possible?

Upvotes: 1

Views: 227

Answers (1)

Sam Dark
Sam Dark

Reputation: 5291

Yes. Just iterate over your application.models directory and get filenames.

Upvotes: 1

Related Questions