I created the behavior and attached it to a controller. In this behavior I have few constants.
How can I get this constants from an action?
self::CONST_NAME causes an error "Fatal error: Undefined class constant 'CONST_NAME'".
At the same time, if I create in behavior not a constant, but a public variable, then I can access this variable and all works fine. But I want to use constants.
Thanks.
Page 1 of 1
Get Behavior's Constant From An Action
Share this topic:
Page 1 of 1

Help












