Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
1
0
 
0
Language: PHP
Posted by: ioluci
Added: Jul 24, 2018 4:59 PM
Views: 10
the requested array is :
$items = [
1 => 'value 1',
2 => 'value 2'
]
  1. //get the array for dropdown from array of objects
  2. //arguments: array, index, value
  3. ArrayHelper::map($sala->casse, 'id', 'cassa')