×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Md. Muntasir Enam
Added: Jan 7, 2015 6:57 AM
Views: 13
Tags: form cakephp
CakePHP create form
  1. <?php
  2. echo $this->Form->create( 'TariffPlan', array(
  3.     'id' => 'formTariffPlan',
  4.     'class' => 'form-horizontal',
  5.     'type' => 'file',
  6.     'autocomplete' => 'off',
  7.     'role' => 'form',
  8.     'inputDefaults' => array( 'required' => FALSE, 'div' => FALSE, 'label' => FALSE, 'legend' => FALSE ),
  9. ) );
  10. echo $this->Form->hidden( 'id', array( 'value' => isset( $data['TariffPlan']['id'] ) ? $data['TariffPlan']['id'] : '' ) );
  11. ?>