# |
Sep 22nd 2011, 21:59 |
Dunhamzzz |
friskd what sort of credit cards do you have that have days on there as well ? |
# |
Sep 22nd 2011, 21:58 |
friskd |
problem being that its only yyyy-mm that is the standard, thus you have date which requires yyyy-mm-dd |
# |
Sep 22nd 2011, 21:58 |
Dunhamzzz |
mm/yy |
# |
Sep 22nd 2011, 21:58 |
scoutmstershke |
id say string |
# |
Sep 22nd 2011, 21:58 |
Dunhamzzz |
friskd I'd do it as char(5) |
# |
Sep 22nd 2011, 21:58 |
friskd |
Should a credit card expiration be stored as a datetime or string |
# |
Sep 22nd 2011, 21:58 |
scoutmstershke |
use bind model |
# |
Sep 22nd 2011, 21:57 |
diverdude |
My database blows completely up in size, in terms of table counts. This is because of numerous HABTM relations. Is there some trick to reduce the number of tables but still keep the HABTM relationships? |
# |
Sep 22nd 2011, 21:45 |
mdunham918_ |
cpgo: that did not work |
# |
Sep 22nd 2011, 21:44 |
mdunham918_ |
thanks cpgo |
# |
Sep 22nd 2011, 21:44 |
cpgo |
/browse/* |
# |
Sep 22nd 2011, 21:44 |
mdunham918_ |
NoReGreT: use loggedIn() ? |
# |
Sep 22nd 2011, 21:44 |
mdunham918_ |
i want chicken/rolls |
# |
Sep 22nd 2011, 21:44 |
mdunham918_ |
how do i tell a cake route i want everything after /browse/ sent to browser($category); right now it only sends the first param like /browser/chicken i get chicken but if i do /browser/chicken/rolls i still only get chicken |
# |
Sep 22nd 2011, 21:44 |
NoReGreT |
how can I disable the "invalid login" flash message in login() ? the thing is taht i'm checking in login() if a user is already logged in, if he's logged in then flash a message, without any flash error message...any ideas ? |
# |
Sep 22nd 2011, 21:43 |
mdunham918_ |
hey guys |
# |
Sep 22nd 2011, 21:38 |
Vaidotas |
thanks :) |
# |
Sep 22nd 2011, 21:38 |
cpgo |
in the model set the displayField to question |
# |
Sep 22nd 2011, 21:37 |
Vaidotas |
i want to show question field |
# |
Sep 22nd 2011, 21:37 |
Vaidotas |
now there isn`t such a field, so it is showing IDS |
# |
Sep 22nd 2011, 21:37 |
Vaidotas |
then in options list it would show this title or name |
# |
Sep 22nd 2011, 21:37 |
Vaidotas |
if it has field "title" or "name" |
# |
Sep 22nd 2011, 21:37 |
Vaidotas |
id and question |
# |
Sep 22nd 2011, 21:37 |
Vaidotas |
my table has two fields |
# |
Sep 22nd 2011, 21:37 |
Vaidotas |
no |
# |
Sep 22nd 2011, 21:36 |
cpgo |
you want both the name and value to be the same? |
# |
Sep 22nd 2011, 21:36 |
Vaidotas |
you understand what i mean? :) |
# |
Sep 22nd 2011, 21:36 |
Vaidotas |
but i need to get field "question" |
# |
Sep 22nd 2011, 21:36 |
Vaidotas |
instead of TEXT i get ID |
# |
Sep 22nd 2011, 21:36 |
Vaidotas |
<select><option> TEXT</option> |
# |
Sep 22nd 2011, 21:36 |
cpgo |
input* |
# |
Sep 22nd 2011, 21:36 |
cpgo |
field('name', array('selected' => 'the_value_you_want_selected'); |
# |
Sep 22nd 2011, 21:35 |
cpgo |
and you want to set the selected option |
# |
Sep 22nd 2011, 21:35 |
Vaidotas |
yes |
# |
Sep 22nd 2011, 21:35 |
cpgo |
Vaidotas, are you talking about a select element? |
# |
Sep 22nd 2011, 21:28 |
Vaidotas |
its not title or name |
# |
Sep 22nd 2011, 21:28 |
Vaidotas |
how to set which field of options to show? |
# |
Sep 22nd 2011, 21:27 |
Vaidotas |
i have input with options |
# |
Sep 22nd 2011, 21:14 |
NoReGreT |
how can I disable the "invalid login" flash message in login() ? the thing is taht i'm checking in login() if a user is already logged in, if he's logged in then flash a message, without any flash error message...any ideas ? |
# |
Sep 22nd 2011, 21:05 |
Kanibal |
*uses |
# |
Sep 22nd 2011, 21:05 |
Kanibal |
There was an empty var $users = array(); in my AppController |