i'm new cake, have no clue happened.
this code works :
echo $this->form->input('phone', array( 'required' => false, 'div' => 'form-group', 'class' => 'form-control', 'label' => array( 'class' => 'control-label', 'text' => __d('admin', 'tel. numeris') ), 'placeholder' => __d('admin', 'tel. numeris'), 'error' => array( 'attributes' => array( 'class' => 'alert alert-danger' ) ) ) ); this 1 doesn't :
echo $this->form->input('email', array( 'required' => false, 'div' => 'form-group', 'class' => 'form-control', 'label' => array( 'class' => 'control-label', 'text' => __d('admin', 'el.paštas') ), 'placeholder' => __d('admin', 'el.paštas'), 'error' => array( 'attributes' => array( 'class' => 'alert alert-danger' ) ) ) ); and example if change email to, lets say, emailas, works too(but doesnt anything) :
echo $this->form->input('emailas', array( 'required' => false, 'div' => 'form-group', 'class' => 'form-control', 'label' => array( 'class' => 'control-label', 'text' => __d('admin', 'el.paštas') ), 'placeholder' => __d('admin', 'el.paštas'), 'error' => array( 'attributes' => array( 'class' => 'alert alert-danger' ) ) ) ); could please me or @ least tell me look? input stopped working out of blue, maybe theres possibility somehow restart whole plugin? thank in advance
p.s. how input field looks atm vs how should : http://imgur.com/bbrkgxm
try this:
echo $this->form->input('email', array( 'required' => false, 'div' => 'form-group', 'class' => 'form-control', 'type' => 'email', 'label' => array( 'class' => 'control-label', 'text' => __d('admin', 'el.paštas') ), 'placeholder' => __d('admin', 'el.paštas'), 'error' => array( 'attributes' => array( 'class' => 'alert alert-danger' ) ) ) ); and make sure have email field in database , overriding email field (in controller / model)
Comments
Post a Comment