本文整理匯總了PHP中Organization::items方法的典型用法代碼示例。如果您正苦於以下問題:PHP Organization::items方法的具體用法?PHP Organization::items怎麽用?PHP Organization::items使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Organization
的用法示例。
在下文中一共展示了Organization::items方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
<?php
echo $form->textField($model, 'employee_transaction_languages_known_id', array('size' => 20, 'maxlength' => 20));
?>
<?php
echo $form->error($model, 'employee_transaction_languages_known_id');
?>
</div>
<div class="row">
<?php
echo $form->labelEx($model, 'employee_transaction_organization_id');
?>
<?php
echo $form->dropDownList($model, 'employee_transaction_organization_id', Organization::items(), array('empty' => 'Select one of the following...'));
?>
<?php
echo $form->error($model, 'employee_transaction_organization_id');
?>
-->
示例2: array
?>
<?php
echo $form->textField($model, 'eduboard_name', array('size' => 25, 'maxlength' => 30));
?>
<span class="status"> </span>
<?php
echo $form->error($model, 'eduboard_name');
?>
</div>
<!--
<div class="row1">
<?php
echo $form->labelEx($model, 'eduboard_organization_id');
?>
<?php
echo $form->dropDownList($model, 'eduboard_organization_id', Organization::items());
?>
<?php
echo $form->error($model, 'eduboard_organization_id');
?>
</div>
-->
<!--<div class="row">
<?php
echo $form->labelEx($model, 'eduboard_created_by');
?>
<?php
echo $form->textField($model, 'eduboard_created_by');
?>
<?php
echo $form->error($model, 'eduboard_created_by');