I’m using a script that’s built on the YII framework. I just added an extra table to the database, and want to know how I can pull data from it.
Lets say my table is called “clients”, and my column is “name”, how can I pull the data to show it?
I asked the owners of the script, but all they told me was to “define a controller and model to make it work”
Although I’m not bad with php and have done this before with WordPress and stuff… I’m totally new and dumb with YII framework.
So I’m hoping you guys can help me with a code?
If you don’t know how to create model, try to use Gii. Just add module definition to config and go to your.local.domen/gii. But better read the docs.