# |
Sep 22nd 2011, 22:10 |
Ghost_Trolley |
ACTION is searching through everything for the that damn whitespace... |
# |
Sep 22nd 2011, 22:08 |
Ghost_Trolley |
ACTION pokes Section58 |
# |
Sep 22nd 2011, 22:08 |
cpierce |
should you not use $this->data in cake 2.0 anymore â?¦ i'm seeing a lot of errors when trying to write to $this->data â?¦ although it seems that its working with reads okay |
# |
Sep 22nd 2011, 22:03 |
friskd |
Is there an easy way to store the value in the db as yyyymm or something similiar, but then have cake auto render it as datetime correctly defaulting the values. |
# |
Sep 22nd 2011, 22:00 |
scoutmstershke |
google cakephp and bindmodel |
# |
Sep 22nd 2011, 22:00 |
scoutmstershke |
create |
# |
Sep 22nd 2011, 22:00 |
scoutmstershke |
you can creat associations on the fly as you need them |
# |
Sep 22nd 2011, 22:00 |
diverdude |
scoutmstershke, bind model? |
# |
Sep 22nd 2011, 21:59 |
friskd |
Dunhamzzz: Debit cards |
# |
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'); |