本文整理匯總了PHP中ProductCategory::items方法的典型用法代碼示例。如果您正苦於以下問題:PHP ProductCategory::items方法的具體用法?PHP ProductCategory::items怎麽用?PHP ProductCategory::items使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ProductCategory
的用法示例。
在下文中一共展示了ProductCategory::items方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
<div class="section-title">
<i class="catalogue-icon"></i> <span>Каталог продукции</span>
</div>
<?php
echo $this->renderPartial('application.components.views.productsSale');
?>
</div>
<div class="page-content-wrap">
<div class="data-header catalogue-header clearfix">
<div class="data-header-text">
Выберите серию:
</div>
<div class="select-wrap select-seria-wrap">
<?php
echo CHtml::dropDownList('category_id', Yii::app()->request->getParam('id', -1), CHtml::listData(array(-1 => array('id' => -1, 'value' => 'Любая')) + ProductCategory::items(), 'id', 'value'));
?>
</div>
<div class="data-header-text">
Способ получения:
</div>
<div class="select-wrap select-delivery-wrap">
<?php
echo CHtml::dropDownList('deliveryType', Yii::app()->request->getParam('deliveryType', -1), array('-1' => 'Любой', '0' => 'Самовывоз', '1' => 'Доставка на дом'));
?>
</div>
<div class="order-view-filter clearfix">
<a href="javascript:void(0)" class="active">
Обычный<br>
заказ
</a>
示例2:
echo $form->labelEx($model, 'article');
?>
<?php
echo $form->textField($model, 'article');
?>
<?php
echo $form->error($model, 'article');
?>
</div>
<div class="enter-form-row data-header">
<?php
echo $form->labelEx($model, 'category_id');
?>
<div class="select-wrap">
<?php
echo $form->dropDownList($model, 'category_id', CHtml::listData(ProductCategory::items(), 'id', 'value'));
?>
</div>
<?php
echo $form->error($model, 'category_id');
?>
</div>
<div class="enter-form-row">
<?php
echo $form->labelEx($model, 'price');
?>
<?php
echo $form->textField($model, 'price');
?>
<?php
echo $form->error($model, 'price');