Yii Framework Forum: Extending core classes and use them - Yii Framework Forum

Jump to content

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

Extending core classes and use them Rate Topic: -----

#1 User is offline   ajaxian 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 196
  • Joined: 02-June 10

Posted 28 June 2012 - 02:07 PM

Hi all,

I would like to do this like discribed in documentation
class TextAlign extends CEnumerable
{
    const Left='Left';
    const Right='Right';
}


But I wondering where putting this derived class in order to write just :
TextAlign::Left

for using it

Thanks
0

#2 User is offline   warmoger 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 32
  • Joined: 06-January 11

Posted 28 June 2012 - 02:20 PM

In document of Yii write.. "Then, one can use the enumerable values such as TextAlign::Left and TextAlign::Right."
But I think it can't
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