# |
Aug 8th 2008, 11:32 |
AD7six |
aaronfalloon: are you using the upload behavior |
# |
Aug 8th 2008, 11:31 |
AD7six |
__mork: exactly what it says on the tin - see the book. |
# |
Aug 8th 2008, 11:31 |
asciimo |
aaronfalloon: do you mean chmod from the command line? |
# |
Aug 8th 2008, 11:31 |
AD7six |
aaronfalloon: where are you saving your upload files - your question is odd because what you're asking about isn't something cake takes care of. |
# |
Aug 8th 2008, 11:31 |
__mork |
AD7six: ehm, what are array urls? |
# |
Aug 8th 2008, 11:30 |
aaronfalloon |
I;ve tried tonnes of combinations but can't get it to work. |
# |
Aug 8th 2008, 11:29 |
AD7six |
aaronfalloon: what an odd question |
# |
Aug 8th 2008, 11:29 |
aaronfalloon |
I'm having trouble getting uploads to work with CakePHP. I can't get a chmod to find the folder. Anybody know the root I need to give it? I currently have: /img/uploads/. |
# |
Aug 8th 2008, 11:29 |
AD7six |
unless you are working with 1.1 |
# |
Aug 8th 2008, 11:29 |
AD7six |
__mork: you have less difficulties overall if you use array urls |
# |
Aug 8th 2008, 11:28 |
AD7six |
asciimo: you can 'cherry pick' your relationships to fit what's more appropriate. $Listener->Rating->save() [Listner hasMany Rating] $music = $Music->find() [ Music habtm Lovers,Haters] |
# |
Aug 8th 2008, 11:27 |
__mork |
shame on __mork |
# |
Aug 8th 2008, 11:27 |
__mork |
answer: the operator is .= |
# |
Aug 8th 2008, 11:27 |
__mork |
i mean, why don't work += ? |
# |
Aug 8th 2008, 11:26 |
__mork |
please, be patient: why after if ($link['url'] =='/users/view'){ $link['url'] += $User['id'];} $link['url'] == $User['id'] ? |
# |
Aug 8th 2008, 11:26 |
asciimo |
that's a good idea, AD7six. thank you |
# |
Aug 8th 2008, 11:25 |
asciimo |
SAWEET. so it comes into play during the retrieval. |
# |
Aug 8th 2008, 11:25 |
AD7six |
asciimo: imo music_listeners should be named 'ratings' or 'opinions' |
# |
Aug 8th 2008, 11:24 |
asciimo |
ultimately, I want to display all the "musics" at the view, along with all the listeners who hate each, and all the listeners who love each |
# |
Aug 8th 2008, 11:24 |
AD7six |
thereÅ› a condition key in all assoiciations and you can define 'conditions' => array('MusicListner. type' => 'love') to limit what you find (for example). that wouldn't affect inserts - IMO the easiest way to do so is to treat the join table as a model. |
# |
Aug 8th 2008, 11:23 |
asciimo |
I want to add a 3rd column to music_listeners w/ a bit expressing "love" or "hate" |
# |
Aug 8th 2008, 11:22 |
asciimo |
the db has, e.g. music table, listeners table, music_listeners |
# |
Aug 8th 2008, 11:22 |
asciimo |
good question. I'm setting up some shell classes for models, and I want to make cake aware of entity relationships |
# |
Aug 8th 2008, 11:20 |
AD7six |
at what 'level' is your question - how to achive that, how to count each how to edit, how to define? |
# |
Aug 8th 2008, 11:19 |
asciimo |
So I've got a hasAndBelongsToMany relationship between music and listeners, but I want specify the types of relationship to each. "hate" or "love" |
# |
Aug 8th 2008, 11:19 |
asciimo |
and, of course, there are many different types of music that they all listen to. |
# |
Aug 8th 2008, 11:19 |
asciimo |
ok. My music is exposed to many listeners. Some listeners love my music. Some hate my music. |
# |
Aug 8th 2008, 11:18 |
asciimo |
good analogies. |
# |
Aug 8th 2008, 11:17 |
AD7six |
asciimo: try if my article hasMany Users, but some are author, reviewer, editor etc. use real names/examples. |
# |
Aug 8th 2008, 11:16 |
asciimo |
Thanks, AD7six. |
# |
Aug 8th 2008, 11:15 |
AD7six |
because otherwise I don't foo the moo what you're baring about |
# |
Aug 8th 2008, 11:15 |
AD7six |
asciimo: it would be foo if you didn't talk in bars |
# |
Aug 8th 2008, 11:14 |
asciimo |
In other words, my_obj has 5 relationships to many your_obj of the "foo" kind, and 5 relationships to many your_obj of the "bar" kind |
# |
Aug 8th 2008, 11:13 |
asciimo |
Hi, folks. I'm a cake newbie. Does cake give an easy way of expressing qualities to relationships? For example, if my my_obj has many your_obj, but some of those relationships are "foo" and some are "bar"... |
# |
Aug 8th 2008, 11:12 |
teknoid |
np |
# |
Aug 8th 2008, 11:11 |
troutoil |
teknoid: gotcha, well, thanks for the help! |
# |
Aug 8th 2008, 11:11 |
teknoid |
troutoil: ah, it does for this case... but there is more to it then just the variable name |
# |
Aug 8th 2008, 11:09 |
troutoil |
teknoid: the above bin works automagically... and the models field type is just INT... |
# |
Aug 8th 2008, 11:09 |
troutoil |
http://bin.cakephp.org/view/711954834 |
# |
Aug 8th 2008, 11:08 |
tbranyen |
Once we get the go-ahead |
# |
Aug 8th 2008, 11:07 |
tbranyen |
Yeah its myself and another php developer, we have a two week timeframe. |