Text only
Model Array Map for Dropdown
/raw/9fb5c0940f4f98b23d33217a9866392c/
9fb5c0940f4f98b23d33217a9866392c
text
Text only
1
2025-04-04T11:35:19
True
False
False
Jul 16, 2017 at 03:28 AM
/api/public/snipt/13/
model-array-map-for-dropdown
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>$items = ArrayHelper::map(Standard::find()->all(), 's_id', 'name');
</span></pre></div>
</td></tr></table>