Yii Framework Forum: [Extension] Pcclassexistsvalidator - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[Extension] Pcclassexistsvalidator Validator class to make sure a value assigned is a valid class name Rate Topic: -----

#1 User is offline   Boaz 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 367
  • Joined: 23-January 11

Posted 23 December 2012 - 09:17 AM

Hi all,

I've published an extension that is used as a class validator to verify that an AR class attribute can take as value only valid names of classes. This is useful in occasions when you have a class file that refers to other models in your system, like 'views counter', 'like functionality' etc. In such an example, you could have a widget of 'views counter' and that will need to be told which class name (and id) it needs to display its counter for. This validator can make sure that only valid class names are used when such widgets are fired up.

The extension can be found here.
Therapeutic PHP sessions My LinkedIn Profile
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users