Esempio n. 1
0
echo $form->labelEx($model, 'description');
?>
        <?php 
echo $form->textField($model, 'description', array('size' => 60, 'maxlength' => 255));
?>
        <?php 
echo $form->error($model, 'description');
?>
    </div>

    <div class="row">
        <?php 
echo $form->labelEx($model, 'winery_id');
?>
        <?php 
$wineries_list = CHtml::listData(Wineries::model()->findAll(array('order' => 'winery_name')), 'id', 'winery_name');
?>
        <?php 
echo $form->dropDownList($model, 'winery_id', $wineries_list, array('empty' => '(Select a Winery)'));
?>
        <?php 
echo $form->error($model, 'winery_id');
?>
    </div>

    <div class="row">
        <?php 
echo $form->labelEx($model, 'appellation_id');
$criteria = new CDbCriteria();
$criteria->with = array('region');
$criteria->compare('t.common_flg', 'Y');
Esempio n. 2
0
 /**
  * Default view all wineries
  */
 public function actionCreate()
 {
     $wineryList = Wineries::model()->findByPk($id);
     $this->renderOutput($wineryList);
 }