Skip to content

Instantly share code, notes, and snippets.

@dodopok
Created June 6, 2013 16:45
Show Gist options
  • Save dodopok/5722985 to your computer and use it in GitHub Desktop.
Save dodopok/5722985 to your computer and use it in GitHub Desktop.
FormHelper - CakePHP
<?php echo $this->Form->create('Veiculo'); ?>
<fieldset>
<legend><?php echo __('Novo Veículo'); ?></legend>
<?php
echo $this->Form->input('user_id', array('type' => 'hidden', 'value' => $this->Session->read('Auth.User.id')));
echo $this->Form->input('group_id', array('type' => 'hidden', 'value' => $this->Session->read('choosed')));
echo $this->Form->input('veiculo', array('size' => '150', 'label' => 'Veículo'));
echo $this->Form->input('placa');
echo $this->Form->input('rntc', array('size' => '20', 'label' => 'RNTC'));
echo $this->Form->input('antt', array('size' => '20', 'label' => 'Código ANTT'));
echo $this->Form->input('estados', array('label' => 'UF Placa'));
?>
</fieldset>
<?php echo $this->Form->end(__('Cadastrar')); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment