October 22, 2024
Chicago 12, Melborne City, USA
PHP

How to create a table on button click in Yii2


I need to create a new table instance by clicking on the button.Each new created table has its own unique name .As far as I understand I need firstly to get action function in controller then bind it to button.
But how could I manipulate new created table if only table not its model is created?

I tried to create new table with createCommand function. But no idea how to manipulate its model.



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video