Yii Framework Forum: Class Members With Rules - Yii Framework Forum

Jump to content

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

Class Members With Rules Rate Topic: -----

#1 User is offline   Jose Hernandez 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 07-October 12
  • Location:Miami, FL

Posted 16 October 2012 - 09:07 PM

Hello,

Anyone know if rules() allows private class members? Or do they need to be public or protected of the class? Or is there some type of name scheme that needs to be followed?
0

#2 User is offline   alirz23 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 677
  • Joined: 08-August 12
  • Location:Durban, South Africa

Posted 17 October 2012 - 01:48 AM

since you can't access private methods/members from outside your class you dont need validation rule for your private methods/members
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