本文整理汇总了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');