Posts by Samuel Dourado • 11 points
2 posts
-
0
votes1
answer90
viewsA: Display data from two grid tables with YII framework
What is the relationship between products and customers? Because a relationship many to many needs an auxiliary table (product), but if it is a relationship like one for many you can solve with a…
-
0
votes1
answer76
viewsA: Load a json into a Yii2 Dropdownlist
You can use the function Decode() to convert the json string to an array, and then use Arrayhelper to map the array to "chave" => "valor"(which is the format accepted by select). <?php $json =…