Jump to content

Need help with "select" field in Admin


Recommended Posts

Hey guys,

 

i have a model:

 

class Postcode extends ObjectModel {

 

    public $id_state;

 

 

The definition has:

 

'id_state'=> array(

                'type'=>self::TYPE_INT,

                'validate'=>'isUnsignedId',

                'required'=>true

            ),

 

And i try to add a field in admin:

 

array(

                    'type'=>'text',

                    'label'=>$this -> l('City'),

                    'name'=>'id_state',

                    'maxlength'=>64,

                    'required'=>true

                ),

 

but it seems the model doesnt find "id_state" as i see only":

 

<div class="form-group" id="contains_states" style="display:none;">

<label class="control-label col-lg-3 required">
City
</label>
<div class="col-lg-9 ">
<input type="text" name="id_state" id="id_state" value="" class="" maxlength="64" required="required">
</div>
</div>
 
Can someone say what i am missing?
 
Thanks!
Link to comment
Share on other sites

×
×
  • Create New...