Skip to content

Instantly share code, notes, and snippets.

@kylejohnson
Created October 23, 2013 12:40
Show Gist options
  • Select an option

  • Save kylejohnson/7117925 to your computer and use it in GitHub Desktop.

Select an option

Save kylejohnson/7117925 to your computer and use it in GitHub Desktop.
<div class="form-group col-md-6">
<label class="control-label col-md-6" for="ZoneType"> … </label>
<div class="input select">
<select id="ZoneType" class="form-control" name="data[Zone][Type]"> … </select>
</div>
</div>
<?php
echo $this->Form->create('Zone', array(
'inputDefaults' => array(
'legend' => false,
'fieldset' => false,
'label' => array('class' => array('control-label', 'col-md-6')),
'div' => array('class' => array('form-group', 'col-md-6')),
'class' => 'form-control',
),
'class' => 'form-horizontal'
));
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment