Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

dropdown in crud application YII

<?php $list = CHtml::listData(Country::model()->findAll(), 
     'id', 'name'); ?>
<?php echo $form->dropDownList($model, 'country_id', $list,
     array('empty'=>'(Select a Country)')); ?>
Source by jmmurphy.blogspot.com #
 
PREVIOUS NEXT
Tagged: #dropdown #crud #application #YII
ADD COMMENT
Topic
Name
4+3 =