# |
Sep 23rd 2011, 16:50 |
JD-Robbs |
Or that :) |
# |
Sep 23rd 2011, 16:50 |
jonathansnook |
I have Query and Query.User. did the trick. |
# |
Sep 23rd 2011, 16:50 |
jose_zap |
destinydriven: Time to open a github account and fork cake |
# |
Sep 23rd 2011, 16:50 |
JD-Robbs |
Ah okay :D |
# |
Sep 23rd 2011, 16:50 |
JD-Robbs |
UserProfile being your second |
# |
Sep 23rd 2011, 16:50 |
JD-Robbs |
So you get Model->User->UserProfile and Model->Settings |
# |
Sep 23rd 2011, 16:50 |
JD-Robbs |
$this->MyModel->contain(array('User' => 'UserProfile' , 'Settings')) ... |
# |
Sep 23rd 2011, 16:50 |
jonathansnook |
) |
# |
Sep 23rd 2011, 16:50 |
jonathansnook |
JD-Robbs: just tried it. I can. |
# |
Sep 23rd 2011, 16:50 |
JD-Robbs |
Second level like so: |
# |
Sep 23rd 2011, 16:49 |
jonathansnook |
JD-Robbs: the problem is that the models are off of the second level model, not the first level. Unless, can I do ModelName.SubModelName? |
# |
Sep 23rd 2011, 16:47 |
destinydriven |
I downloaded with tarball |
# |
Sep 23rd 2011, 16:47 |
JD-Robbs |
jonathansnook: You'd need to specify all models you need in the contain array |
# |
Sep 23rd 2011, 16:47 |
jose_zap |
destinydriven: did you download cakephp with git or the tar ball? |
# |
Sep 23rd 2011, 16:46 |
destinydriven |
jose_zap, not really |
# |
Sep 23rd 2011, 16:46 |
destinydriven |
k |
# |
Sep 23rd 2011, 16:46 |
jose_zap |
destinydriven: are you familiar with git? |
# |
Sep 23rd 2011, 16:46 |
jose_zap |
destinydriven: ok |
# |
Sep 23rd 2011, 16:46 |
jonathansnook |
Containable seems to prevent the recursion from continuing down the chain. Easy answer? |
# |
Sep 23rd 2011, 16:44 |
destinydriven |
jose_zap, I'm ready with the oracle stuff |
# |
Sep 23rd 2011, 16:39 |
NetersLandreau |
yep.. if you don't use it, you will lose it :) |
# |
Sep 23rd 2011, 16:38 |
jonathansnook |
NetersLandreau: yea, I don't use cake nearly as often as I used to. I'm a little rusty. :) |
# |
Sep 23rd 2011, 16:37 |
destinydriven |
jose_zap, I've fired up a test app |
# |
Sep 23rd 2011, 16:37 |
NetersLandreau |
jonathansnook: a nick i have not seen for a long time.. |
# |
Sep 23rd 2011, 16:36 |
jonathansnook |
excellent. thanks! |
# |
Sep 23rd 2011, 16:36 |
JD-Robbs |
And then the associated models and their conditions |
# |
Sep 23rd 2011, 16:36 |
JD-Robbs |
'contain' => array() |
# |
Sep 23rd 2011, 16:35 |
JD-Robbs |
;) |
# |
Sep 23rd 2011, 16:35 |
jonathansnook |
Thanks. |
# |
Sep 23rd 2011, 16:35 |
jonathansnook |
Ah. That does sound familiar. |
# |
Sep 23rd 2011, 16:35 |
JD-Robbs |
Containable |
# |
Sep 23rd 2011, 16:35 |
jonathansnook |
I thought you could just specify the condition on the model name like $this->ModelName->SubModel->conditions = ... |
# |
Sep 23rd 2011, 16:35 |
jonathansnook |
How do you put conditions on queries that are at a deeper level of recursion? |
# |
Sep 23rd 2011, 16:34 |
jonathansnook |
quick (and hopefully simple) question... |
# |
Sep 23rd 2011, 16:19 |
JD-Robbs |
Thing is, at the moment I have a separate installation for each client and I want to merge these into one. :) |
# |
Sep 23rd 2011, 16:19 |
JD-Robbs |
Or I would have to pass the prefixes in every single call of Router::url in the app. I'd rathr like to set all this upon the first login. |
# |
Sep 23rd 2011, 16:16 |
JD-Robbs |
...and to which project they have access. Any help would be appreciated, many thanks already! :-) |
# |
Sep 23rd 2011, 16:16 |
JD-Robbs |
Hi all, I have a conceptional question. I would like to have a URL structure as follows "client1.example.com/project1/controller/action" (or "example.com/client1/project1/controller/action"). Now, I would then like to filter data in the models according to these slugs. With prefix routing I, unfortunately, get only one prefix to work. Also, all the prefixes vary according to who is logged in... |
# |
Sep 23rd 2011, 16:15 |
binky |
or - is there a webtechnick irc channel? |
# |
Sep 23rd 2011, 16:15 |
binky |
is there a workaround for the webtechnick facebook plugin since the graph changes? |
# |
Sep 23rd 2011, 16:08 |
destinydriven |
jose_zap, will do. |