# |
Aug 6th 2008, 23:18 |
moelee |
hm nope |
# |
Aug 6th 2008, 23:18 |
thestaff |
moelee, do you know about modalbox ? |
# |
Aug 6th 2008, 23:17 |
moelee |
haven't played around with that, no |
# |
Aug 6th 2008, 23:17 |
freebox |
/ |
# |
Aug 6th 2008, 23:17 |
freebox |
the third have foo-bar-1 too |
# |
Aug 6th 2008, 23:17 |
freebox |
the second "Foo Bar" have slug foo-bar-1 |
# |
Aug 6th 2008, 23:17 |
mrConfused |
does any1 have a recommendation between xamp and wamp? |
# |
Aug 6th 2008, 23:17 |
freebox |
im using the title field to slug, then the first record with tile "Foo Bar" have slug foo-bar |
# |
Aug 6th 2008, 23:16 |
freebox |
i'm trouble with duplicate slugs |
# |
Aug 6th 2008, 23:16 |
freebox |
moelee: you use sluggable behavior? |
# |
Aug 6th 2008, 23:16 |
freebox |
/ |
# |
Aug 6th 2008, 23:14 |
moelee |
yep |
# |
Aug 6th 2008, 23:14 |
poluta1 |
just add 'id' field :D |
# |
Aug 6th 2008, 23:14 |
poluta1 |
moelee: hooray it works! . no need to set $this->Listener->ArtistsFan->id=null |
# |
Aug 6th 2008, 23:12 |
moelee |
once you do that, it'll probably work with just create |
# |
Aug 6th 2008, 23:12 |
moelee |
of* |
# |
Aug 6th 2008, 23:12 |
moelee |
i've had an id field in all fo my tables |
# |
Aug 6th 2008, 23:12 |
moelee |
yea |
# |
Aug 6th 2008, 23:12 |
poluta1 |
ok.. maybe 'id' field is the requirement for convention |
# |
Aug 6th 2008, 23:11 |
moelee |
auto incremented |
# |
Aug 6th 2008, 23:11 |
moelee |
you need an id field in your join table i believe |
# |
Aug 6th 2008, 23:11 |
moelee |
um |
# |
Aug 6th 2008, 23:10 |
poluta1 |
should i add 'id' field ? |
# |
Aug 6th 2008, 23:10 |
poluta1 |
just that two fields |
# |
Aug 6th 2008, 23:10 |
poluta1 |
moelee: i don't have field named id in my table |
# |
Aug 6th 2008, 23:10 |
moelee |
try doing that before you save |
# |
Aug 6th 2008, 23:09 |
poluta1 |
id = null ? umm.. ok i try |
# |
Aug 6th 2008, 23:09 |
julien_re_ |
i'd like to add extra columns to my list view, which columns should come from aggregate functions |
# |
Aug 6th 2008, 23:09 |
poluta1 |
moelee: http://bin.cakephp.org/view/1230609567 |
# |
Aug 6th 2008, 23:09 |
moelee |
$this->Listener->ArtistsFan=>id = null |
# |
Aug 6th 2008, 23:09 |
moelee |
have you tried explicitly setting the id = null |
# |
Aug 6th 2008, 23:09 |
julien_re_ |
what's the best way to use aggregate functions in Cake ? |
# |
Aug 6th 2008, 23:08 |
moelee |
hmm |
# |
Aug 6th 2008, 23:08 |
poluta1 |
moelee: yes |
# |
Aug 6th 2008, 23:07 |
moelee |
polutal: are you saving right after you create? |
# |
Aug 6th 2008, 23:07 |
freebox |
somebody know an issue with sluggable and duplicated slugs? |
# |
Aug 6th 2008, 23:07 |
benni |
Hi there... shouldn't $this->RequestHandler->respondAs('xml'); force giving back the action as xml? It doesn't work for me... any ideas? (It's the first time I try this - I actually just created a view with xmlish tags and added the line above to the action...) |
# |
Aug 6th 2008, 23:07 |
poluta1 |
$this->Listener->ArtistsFan->save(array('artist_id' => $artist_id, 'fan_id' => $listener_id)) |
# |
Aug 6th 2008, 23:07 |
poluta1 |
$this->Listener->ArtistsFan->create(array('artist_id','fan_id')); |
# |
Aug 6th 2008, 23:07 |
poluta1 |
i've call model::create() before |
# |
Aug 6th 2008, 23:06 |
poluta1 |
hello.. why if i call model::save() the result is always updating ? |