Exemplo n.º 1
0
 public static function getFeaturesById($id)
 {
     return CategoryFeatures::model()->findByPk($id);
 }
Exemplo n.º 2
0
				<ul>
					<li><span><label for="luggageSpaceAvailable">Luggage Space Available</label></span>
					<?php 
echo $form->dropDownList($model, 'luggage_space', array('empty' => 'Select', 'ENOUGH FOR MOVE A SMALL ONE ROOM APPARTMENT' => 'ENOUGH FOR MOVE A SMALL ONE ROOM APPARTMENT', 'ENOUGH FOR LARGE SIZE BAG' => 'ENOUGH FOR LARGE SIZE BAG', 'ENOUGH FOR MEDIUM SIZE BAG' => 'ENOUGH FOR MEDIUM SIZE BAG', 'ENOUGH FOR SMALL BRIEFCASE' => 'ENOUGH FOR SMALL BRIEFCASE', 'UNSPECIFIED' => 'UNSPECIFIED'), array('maxlength' => 255));
?>
</li>
					<li><?php 
echo $form->error($model, 'luggage_space');
?>
</li>
				</ul>

				<ul>
					<li><span><label for="wheelFeatures">Wheel Features</label></span>  </li>
					<li><div class="chkbox avg"><?php 
echo CHtml::checkBoxList('feature_id', $modelFeatures, CHtml::listData(CategoryFeatures::model()->findAll(), 'id', 'feature'));
?>
</div></li>
					<li>
					<?php 
echo $form->error($model, 'feature_id');
?>
</li>
				</ul>

				<ul>
					<li><span><label for="comments">Comments</label></span>  
					<?php 
echo $form->textArea($model, 'comments');
?>
</li>