magnus77 Posted September 23, 2014 Share Posted September 23, 2014 Ciao a tutti, stavo provando ad aggiungere un campo nella pagina di modifica dati personali ( template identity.tpl ): <div class="required form-group"> <label for="documentid" class="required"> {l s='Document Id'} </label> <input class="is_required validate form-control" data-validate="isName" type="text" name="documentid" id="documentid" value="{$smarty.post.documentid}" /> </div> Il campo si vede a video, ma il valore presente a db non viene riportato... Qualcuno sa darmi una mano? Se provo a scrivere: echo $this->customer->documentId; nel file identityController.php viene restituito il valore ( in alto... ). Come fare? Link to comment Share on other sites More sharing options...
magnus77 Posted September 23, 2014 Author Share Posted September 23, 2014 (edited) {$smarty.post|print_r} restituisce: Array ( [id_customer] => 2 [secure_key] => facc9b1a291623a5229dc231eaa18643 [lastname] => s [firstname] => S => [email protected] [passwd] => 996927ff1a513ae1e29d99d35bf3b919 [last_passwd_gen] => 2014-09-23 09:46:48 [id_gender] => 0 [birthday] => 0000-00-00 [newsletter] => 0 [newsletter_date_add] => 0000-00-00 00:00:00 [ip_registration_newsletter] => [optin] => 0 [website] => [company] => [siret] => [ape] => [outstanding_allow_amount] => 0 [show_public_prices] => 0 [id_risk] => 0 [max_payment_days] => 0 [active] => 1 [deleted] => 0 [note] => [is_guest] => 0 [id_shop] => 1 [id_shop_group] => 1 [id_default_group] => 3 [id_lang] => 1 [date_add] => 2014-09-23 15:46:48 [date_upd] => 2014-09-23 18:30:18 [documentid] => Quindi effettivamente il valore non è presente nell'array... Come viene popolato il valore la prima volta ( perchè a seguito del post funziona )... Edited September 23, 2014 by magnus77 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now