title: crud codeigniter default value
body: <p>Hi all I have a site develop in codeigniter with crud.
  Into my insert view I have a select where I want to put in default a value, I have done int his mode (the name of the filed is id_company)</p>
  
  <pre><code>$crud = new grocery_CRUD();
  $state_crud = $crud-&gt;getState();
  $crud-&gt;set_relation('id_company','company','name_company');
  $crud-&gt;set_relation('id_plant','plant','name_plant');
  $crud-&gt;set_relation('id_order','order','name_order');
  $crud-&gt;field_type('id_plant','dropdown', array('0' =&gt; '') );
  $crud-&gt;unset_print();
  $crud-&gt;unset_export();
  $crud-&gt;unset_delete();
  $data['name_company'] = $company[0]['name_company'];
  $data['id_company'] = $company[0]['id'];
  
  $crud-&gt;callback_edit_field('id_company',array($this,'edit_field_callback_id_company_add'));
  </code></pre>
  
  <p>and the callback is:</p>
  
  <pre><code>function edit_field_callback_id_company_add($value, $primary_key){
      $company = $this-&gt;Company_model-&gt;getCompany($value);
      return '&lt;div id="field-id_company" class="readonly_label"&gt;'.$company-&gt;name_company.'&lt;/div&gt;';
  }
  </code></pre>
  
  <p>my model function</p>
  
  <pre><code>function getCompany($id_company, $select = ''){
          if( isset($id_company) &amp;&amp; $id_company &gt; 0 ) : 
              $this-&gt;CI =&amp; get_instance();
              if( $select ) $this-&gt;CI-&gt;db-&gt;select($select);
              $this-&gt;CI-&gt;db-&gt;where('id', $id_company);
              $query = $this-&gt;CI-&gt;db-&gt;get_where($this-&gt;company_table);
              return $query-&gt;result_array();
          endif;
          return FALSE;
      }
  </code></pre>
  
  <p>i have seen that crud  insert a select with name field-id_company_czhn I have try to insert it but nothing.
  Where is the problem?</p>