LuzoWeb Posted May 30, 2015 Share Posted May 30, 2015 Salut, Comment sauvegarder un champ multilingue ? $my = new MyModel($_POST['id']); $my->id = $_POST['id']; //$my->name = $_POST['name']; // sans le multilingue ça marche $my->name_1 = $_POST['name_1'];??? $my->name_2 = $_POST['name_2'];??? $my->update(); Link to comment Share on other sites More sharing options...
LuzoWeb Posted May 31, 2015 Author Share Posted May 31, 2015 $my = new MyModel($_POST['id']); $my->id = $_POST['id']; $my->name = array( '1' => $_POST['name_'.'1'];// id_lang == 1 == FR '2' => $_POST['name_'.'2'];// id_lang == 2 == EN ); $my->update(); 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