# |
Aug 10th 2008, 09:25 |
pyite |
err sorry |
# |
Aug 10th 2008, 09:25 |
kalileo |
pyite: if you do not get an aeeay as result of your find than you did something wrong |
# |
Aug 10th 2008, 09:25 |
pyite |
in order to do that, it needs to read data from ALL other controllers |
# |
Aug 10th 2008, 09:25 |
pyite |
kalileo: in fact, the model of the controller is nothing basically - the controller i'm working on right now is a function to "Write configuration to disk" |
# |
Aug 10th 2008, 09:25 |
pyite |
kalileo: no it does not |
# |
Aug 10th 2008, 09:25 |
pyite |
if i dump the contents of the returned variable there is a behaviorcontroller in there that prevents me from understanding what's in there... |
# |
Aug 10th 2008, 09:25 |
kalileo |
pyite: does your target Model have any association withteh Model of the controller? |
# |
Aug 10th 2008, 09:24 |
pyite |
kalileo: but i can't find anything to cycle through the data that is returned by find() from within the controller. doing a foreach works from a VIEW but doesn't seem to work in the controller... |
# |
Aug 10th 2008, 09:24 |
pyite |
kalileo: i've done app::import to include the OTHER model in this particular method, and that worked. then i call find() on the model, that seems to work |
# |
Aug 10th 2008, 09:23 |
pyite |
kalileo: thanks for trying to help... right now, i am trying to retrieve data from within a controller from a model that's not associated with that controller |
# |
Aug 10th 2008, 09:23 |
kalileo |
so you can loop through it |
# |
Aug 10th 2008, 09:23 |
kalileo |
the result is an array |
# |
Aug 10th 2008, 09:23 |
kalileo |
pyite: maybe a foreach loop - but I don't really know what you're after |
# |
Aug 10th 2008, 09:20 |
pyite |
though i do see how to call ->find() on an imported model... |
# |
Aug 10th 2008, 09:19 |
pyite |
can anyone tell me how to cycle through the results of a ->find() call to a model, from within a controller? sorry for such a basic question but i'm not seeing the answer in the docs |
# |
Aug 10th 2008, 08:47 |
primeminister |
thanks again! |
# |
Aug 10th 2008, 08:47 |
primeminister |
achew22: yeah. i'm on it |
# |
Aug 10th 2008, 08:46 |
achew22 |
but it may be wrong |
# |
Aug 10th 2008, 08:46 |
achew22 |
I don't see anything wrong |
# |
Aug 10th 2008, 08:46 |
achew22 |
I would check your regexp |
# |
Aug 10th 2008, 08:46 |
achew22 |
strange |
# |
Aug 10th 2008, 08:45 |
primeminister |
wauw |
# |
Aug 10th 2008, 08:45 |
primeminister |
achew22: and when I remove the regexps from my route then it works perfectly ... |
# |
Aug 10th 2008, 08:44 |
primeminister |
that's what I don;t like. things almost working but I don't understand why |
# |
Aug 10th 2008, 08:44 |
achew22 |
yes... strange |
# |
Aug 10th 2008, 08:43 |
primeminister |
achew22: straaaaanggggeee |
# |
Aug 10th 2008, 08:43 |
primeminister |
seen this in my bin? /pastes/2008/09/01 gives me alse ['pass'][0] = 01 AND day => 01 |
# |
Aug 10th 2008, 08:43 |
primeminister |
achew22: no , but is ok |
# |
Aug 10th 2008, 08:42 |
Tosak |
Any idea why? |
# |
Aug 10th 2008, 08:42 |
Tosak |
I'm having some problems catching errors from radiobuttons. None of them are selected by default, and the possible values are 1 or 2. Neither inList, required or numerical returns an error message. |
# |
Aug 10th 2008, 08:42 |
achew22 |
or do you mean versioning? |
# |
Aug 10th 2008, 08:42 |
primeminister |
ah ok |
# |
Aug 10th 2008, 08:42 |
achew22 |
I've never seen highlighting in a bin |
# |
Aug 10th 2008, 08:41 |
primeminister |
achew22: me too!! :) |
# |
Aug 10th 2008, 08:41 |
primeminister |
but still confused how |
# |
Aug 10th 2008, 08:41 |
achew22 |
I'm not entirely sure why that works but whatever |
# |
Aug 10th 2008, 08:41 |
primeminister |
(hwo can I highlight in bin?) |
# |
Aug 10th 2008, 08:41 |
primeminister |
and connectNameArgs |
# |
Aug 10th 2008, 08:41 |
primeminister |
yeah |
# |
Aug 10th 2008, 08:41 |
achew22 |
ah 'year'=>$year and removed it from below |
# |
Aug 10th 2008, 08:41 |
achew22 |
what's the change? |