devkbsc
Joined: 30 Dec 2014
Posts: 7
Posted: 2014-12-30 12:13
Back to top
Reply with quote
|
Hello,
I am using the phpMyEdit. It's really a powerfull module i haven't ever seen.
I have completed my work in a couple minuites. But one thing i couldn't find to do in the sources code. Because all the variables are well encoded and organised.
I want to encode some field values from numbers to strings. For example.
there is a column in my database, which can store only numbers. I want to replace it by a string in the frontend as follow. When i click on save, again it has to save store only number in the database.
'1'=>'Lundi',
'2'=>'Mardi',
'3'=>'Mercredi',
'4'=>'Jeudi',
'5'=>'Vendredi',
'6'=>'Samedi',
'7'=>'Dimanche'
i have coded for restrict value method as i have followed in your documentation as follow. But i couldn't do the best.
$opts['fdd']['jour']['values']=array('1'=>'Lundi','2'=>'Mardi','3'=>'Mercredi','4'=>'Jeudi','5'=>'Vendredi','6'=>'Samedi','7'=>'Dimanche');
Can anybody help me?
|
doug
Joined: 10 Feb 2003
Posts: 1013
Location: Denver, Colorado (USA)
Posted: 2014-12-30 13:39
Back to top
Reply with quote
|
$opts['fdd']['jour']['values2']=array('1'=>'Lundi','2'=>'Mardi','3'=>'Mercredi','4'=>'Jeudi','5'=>'Vendredi','6'=>'Samedi','7'=>'Dimanche');
values2 for multidimensional arrays
|
devkbsc
Joined: 30 Dec 2014
Posts: 7
Posted: 2014-12-30 16:12
Back to top
Reply with quote
|
Thank you very much
|
|
Post new topic
Reply to topic
|
|
|