# |
Aug 6th 2008, 19:14 |
snizwickit |
gotcha |
# |
Aug 6th 2008, 19:14 |
snizwickit |
aaah |
# |
Aug 6th 2008, 19:14 |
polerin |
that's what associations are for :) |
# |
Aug 6th 2008, 19:14 |
polerin |
snizwickit: sure it can $this->Projects->find() with a recursive, or $this->Projects->AeVersions->find() |
# |
Aug 6th 2008, 19:13 |
cozby |
is that just some nifty feature? |
# |
Aug 6th 2008, 19:13 |
cozby |
with data from the array I sent from the controller |
# |
Aug 6th 2008, 19:13 |
cozby |
strange thing has occurred, so I set back a an array from my controller to my view... I have form->input statement not specifying the type but it automatically turned into a select (drop down box) |
# |
Aug 6th 2008, 19:12 |
snizwickit |
i don't think i can do it with associations |
# |
Aug 6th 2008, 19:12 |
snizwickit |
and i need to get a list of AeVersions for an action in my projects controller |
# |
Aug 6th 2008, 19:12 |
snizwickit |
well my model "Projects" has a foreign key to my other model "AeVersions" |
# |
Aug 6th 2008, 19:11 |
polerin |
I was taking a break and playing some cs:s |
# |
Aug 6th 2008, 19:11 |
polerin |
hehe |
# |
Aug 6th 2008, 19:10 |
TommyO |
that was for my lazy benefit, not a rtfm :) |
# |
Aug 6th 2008, 19:09 |
TommyO |
no... idea :) |
# |
Aug 6th 2008, 19:09 |
polerin |
no? |
# |
Aug 6th 2008, 19:09 |
polerin |
TommyO: haven't tested it yet, but i'm thinking it has to do with $runtime |
# |
Aug 6th 2008, 19:08 |
TommyO |
polerin: figure out your containable puzzle? |
# |
Aug 6th 2008, 19:06 |
TommyO |
more often than not a need for $uses is a process that needs rethinking, imho |
# |
Aug 6th 2008, 19:04 |
TommyO |
$uses is an override that should be avoided |
# |
Aug 6th 2008, 19:04 |
polerin |
TommyO: heh |
# |
Aug 6th 2008, 19:04 |
TommyO |
really? why? can't reach through associations? |
# |
Aug 6th 2008, 19:04 |
snizwickit |
TommyO: yeah, and I need the $uses for another query in the action |
# |
Aug 6th 2008, 19:04 |
TommyO |
snizwickit: did your $uses array include the default Model? |
# |
Aug 6th 2008, 19:03 |
TommyO |
snizwickit: you really shouldn't need $uses anyway |
# |
Aug 6th 2008, 19:01 |
snizwickit |
changed back to checkboxes |
# |
Aug 6th 2008, 19:00 |
snizwickit |
er |
# |
Aug 6th 2008, 19:00 |
snizwickit |
actually, it changed back to textboxes after I removed the $uses variable from the controller |
# |
Aug 6th 2008, 18:59 |
renan_saddam |
sorry, let me double check |
# |
Aug 6th 2008, 18:59 |
renan_saddam |
from the table |
# |
Aug 6th 2008, 18:58 |
renan_saddam |
and formhelper does not check column type |
# |
Aug 6th 2008, 18:58 |
renan_saddam |
snizwickit: because default input type is text |
# |
Aug 6th 2008, 18:57 |
snizwickit |
what would be causing this behavior? |
# |
Aug 6th 2008, 18:57 |
snizwickit |
for some reason when I do $form-input(...) on a field that is a TINYINT(1), it's showing a textbox instead of a checkbox |
# |
Aug 6th 2008, 18:48 |
polerin |
anyone know if there is a way to augment what a model contains() rather than replace it? |
# |
Aug 6th 2008, 18:47 |
TommyO |
.ctp is the wave of the future ;) |
# |
Aug 6th 2008, 18:46 |
TommyO |
1.2 really only supports .thtml for backwards compat with 1.1 |
# |
Aug 6th 2008, 18:45 |
thestaff |
yeah i fugured out |
# |
Aug 6th 2008, 18:44 |
renan_saddam |
thestaff: 1.1 doest not has .ctp, I guess |
# |
Aug 6th 2008, 18:41 |
renan_saddam |
CakeTemPlate, is not? |
# |
Aug 6th 2008, 18:41 |
thestaff |
how about in the 1.1 ? |
# |
Aug 6th 2008, 18:41 |
thestaff |
so this is in the 1.2 |