# |
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. |
# |
Sep 23rd 2011, 16:07 |
fenix` |
is it just a read call for each model? |
# |
Sep 23rd 2011, 16:07 |
destinydriven |
jose_zap, it may not be today though but I will for sure |
# |
Sep 23rd 2011, 16:07 |
jose_zap |
excellent! |
# |
Sep 23rd 2011, 16:07 |
destinydriven |
jose_zap, no problem, I can set up a test app with cake 2. Will check back with you when I've done that |
# |
Sep 23rd 2011, 16:07 |
fenix` |
whats the best way to incorporate results from three models into a view? |
# |
Sep 23rd 2011, 16:05 |
jose_zap |
destinydriven: do you think you can hack the datasource to get it working? I can guide you in what is needed |
# |
Sep 23rd 2011, 16:05 |
jose_zap |
destinydriven: in theory it should be easy to support oracle, but none of us have found the time to get a oracle server working |
# |
Sep 23rd 2011, 16:04 |
fenix` |
Know1edge: assuming it behaves like app controller, should do. |
# |
Sep 23rd 2011, 16:04 |
destinydriven |
jose_zap, I have a working app on 1.3 |
# |
Sep 23rd 2011, 16:04 |
Know1edge |
since it will inherit from it |
# |
Sep 23rd 2011, 16:04 |
Know1edge |
fenix`: I think it'd work in the plugin's app_model? |
# |
Sep 23rd 2011, 16:03 |
jose_zap |
destinydriven: do you have oracle installed and is your php able to connect to it? |
# |
Sep 23rd 2011, 16:03 |
fenix` |
why how many models do you have? |
# |
Sep 23rd 2011, 16:03 |
destinydriven |
jose_zap, sure . . in any way I can |
# |
Sep 23rd 2011, 16:03 |
beporter |
fenix`: You are correct. |
# |
Sep 23rd 2011, 16:02 |
Know1edge |
was wondering if there was a way to set it once |
# |
Sep 23rd 2011, 16:02 |
Know1edge |
yea i know you can do it in each individual model |
# |
Sep 23rd 2011, 16:02 |
jose_zap |
destinydriven: none. want to help with oracle? |
# |
Sep 23rd 2011, 16:02 |
fenix` |
Know1edge: in the plugins model i think. |
# |
Sep 23rd 2011, 16:01 |
Know1edge |
is there a way to set a table prefix for the entire plugin? |
# |
Sep 23rd 2011, 16:01 |
fenix` |
your not providing parameters to setFlash are you? |
# |
Sep 23rd 2011, 16:00 |
beporter |
fenix`: $this->Session->write('Message.different', 'take2'); works as expected. |
# |
Sep 23rd 2011, 16:00 |
destinydriven |
match* |
# |
Sep 23rd 2011, 16:00 |
destinydriven |
whats the regex math for uuid in route? I'm passing a uuid as named param 'id' |
# |
Sep 23rd 2011, 15:59 |
beporter |
fenix`: checking... |
# |
Sep 23rd 2011, 15:59 |
fenix` |
beporter: i mean more like $this->Session->write... |
# |
Sep 23rd 2011, 15:59 |
beporter |
But setFlash() just doesn't do jack. |
# |
Sep 23rd 2011, 15:58 |
beporter |
fenix`: If I manually set something ($_SESSION['Message']['test'] = 'something';), yes, it persists correctly. |
# |
Sep 23rd 2011, 15:58 |
destinydriven |
fenix`, thats what I gotta work with |
# |
Sep 23rd 2011, 15:58 |
fenix` |
what about other session data does that survive? |