Yii Framework Forum: How to create dynamically method actions - Yii Framework Forum

Jump to content

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

How to create dynamically method actions

#1 User is offline   andronic 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 28-July 15

Posted 19 May 2018 - 07:34 AM

It's posible to create these methods...using the names of these methods from an
array(usually geted from db)?

Because I'm using a lot of actions in yii2.
0

#2 User is offline   skworden 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 529
  • Joined: 14-June 12
  • Location:Virginia, USA

Posted 25 May 2018 - 11:42 AM

You need to be specific and give some examples. The answer is yes you can, however, you may be able to do something a lot simpler with proper routing.
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