Reputation: 588
How to use Yii enum with code example. i have gone through some examples but not getting exactly, does anybody know about it,
Upvotes: 0
Views: 6167
Reputation: 57322
Two type of enums can be instanced: regular Enums
and DBEnums
. The difference is that DBEnum
enum values must exist in a database table (the ideal scenario for a DBEnum
is an enumerated value in DB). A check against the database is performed before using DBEnum
values. Take a look at the examples for further information
to read more visit this http://www.yiiframework.com/extension/enum/ all credit goes to link before
Upvotes: 1