# |
Aug 8th 2008, 12:50 |
lqdice__ |
so it doesnt unset the session token |
# |
Aug 8th 2008, 12:50 |
lqdice__ |
i basically need /upload not to use security |
# |
Aug 8th 2008, 12:49 |
lqdice__ |
swfupload sends the file to /upload .. i got /upload to load the session etc.. fine but then the security component removes the token key from my session.. then swfupload submits my form and the page that it submits to is expecting the token key which upload disabled |
# |
Aug 8th 2008, 12:48 |
teknoid |
lqdice__: no, what exactly happens? |
# |
Aug 8th 2008, 12:48 |
lqdice__ |
using swfupload and its not playing nice |
# |
Aug 8th 2008, 12:47 |
lqdice__ |
teknoid: you know any way to complete disable the security component from a certain action? |
# |
Aug 8th 2008, 12:42 |
polerin |
though I think that cake really needs to look at making them bianary, rather than char's |
# |
Aug 8th 2008, 12:42 |
teknoid |
np |
# |
Aug 8th 2008, 12:42 |
polerin |
UUID's are win |
# |
Aug 8th 2008, 12:42 |
linked_ |
teknoid: yeah, im working on a full-blown resource scheduling app, which have plans to eventually expand with accounting system i guess i'll have to explore this uuid. thanks for the input. |
# |
Aug 8th 2008, 12:40 |
teknoid |
linked_: for many simple cases auto_increment, will be fine... but uuid is probably better when you start dealing with more complex applications |
# |
Aug 8th 2008, 12:39 |
linked_ |
teknoid: er, yup. i mean ('id) |
# |
Aug 8th 2008, 12:39 |
teknoid |
linked_: the rest depends on your app... |
# |
Aug 8th 2008, 12:39 |
teknoid |
linked_: if you follow conventions, primary key should be named 'id'... |
# |
Aug 8th 2008, 12:38 |
freebox2 |
autocomplete for cake => fail |
# |
Aug 8th 2008, 12:38 |
freebox2 |
blergs |
# |
Aug 8th 2008, 12:36 |
linked_ |
best-practices question: is it ideal to use UUIDs as primary keys? (user_id for example) |
# |
Aug 8th 2008, 12:32 |
vudew |
is that normal? |
# |
Aug 8th 2008, 12:31 |
vudew |
in controllers where i use $this->Auth->allow(), $this->Auth->user() isnt working? |
# |
Aug 8th 2008, 12:30 |
linked_ |
teknoid: great, just what i need. thanks. (/me posts to logbook) |
# |
Aug 8th 2008, 12:29 |
linked_ |
teknoid: ok, i'll try |
# |
Aug 8th 2008, 12:29 |
teknoid |
linked_: try recursive = -1; |
# |
Aug 8th 2008, 12:28 |
lqdice__ |
it works for me |
# |
Aug 8th 2008, 12:27 |
linked_ |
lqdice__: hi. yes, i already did that. (put recursive inside find()) |
# |
Aug 8th 2008, 12:26 |
lqdice__ |
you can also do $this->recursive = 0; .. but $recursive = 0 isnt valid |
# |
Aug 8th 2008, 12:26 |
lqdice__ |
linked_: $this->modelname->recursive = 0; .. or find('all', array('recursive' => 0)) |
# |
Aug 8th 2008, 12:25 |
linked_ |
why is it even when i set $recursive=0, find('all') still retrieves the related models? |
# |
Aug 8th 2008, 12:24 |
lqdice__ |
what im doing now is making my own blackholecallback and just returning false |
# |
Aug 8th 2008, 12:23 |
lqdice__ |
is it possible to disable blackhole detection for certain actions ? |
# |
Aug 8th 2008, 12:19 |
teknoid |
np |
# |
Aug 8th 2008, 12:19 |
teknoid |
aarkerio: i.e. error is automatically displayed if you use input() |
# |
Aug 8th 2008, 12:19 |
aarkerio |
thx teknoid |
# |
Aug 8th 2008, 12:18 |
teknoid |
aarkerio: the other way around |
# |
Aug 8th 2008, 12:18 |
aarkerio |
so, no $form->error in input but yes in another kind ,rigth? |
# |
Aug 8th 2008, 12:18 |
teknoid |
aarkerio: because textarea() is not input() |
# |
Aug 8th 2008, 12:17 |
aarkerio |
I did beacuse in form->textarea I don't see the error messages |
# |
Aug 8th 2008, 12:17 |
teknoid |
aarkerio: then you don't need error() ... input() handles that for you |
# |
Aug 8th 2008, 12:17 |
teknoid |
agentbob: np |
# |
Aug 8th 2008, 12:17 |
agentbob |
teknoid: ah, thanks! |
# |
Aug 8th 2008, 12:16 |
aarkerio |
yea! |
# |
Aug 8th 2008, 12:16 |
teknoid |
aarkerio: do you use $form->input()? |