# |
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()? |
# |
Aug 8th 2008, 12:16 |
teknoid |
agentbob: what does it say under "complex find conditions"? |
# |
Aug 8th 2008, 12:16 |
agentbob |
http://manual.cakephp.org/view/312/models claims $conditions is a string |
# |
Aug 8th 2008, 12:15 |
aarkerio |
the weird situation is I am seeing the validate message twice |
# |
Aug 8th 2008, 12:15 |
agentbob |
under the models section of the manual |
# |
Aug 8th 2008, 12:15 |
agentbob |
i did, it only mentions using a sql string |
# |
Aug 8th 2008, 12:15 |
teknoid |
agentbob: why not look in the manual, like i suggested? |
# |
Aug 8th 2008, 12:15 |
aarkerio |
HI! I set a validation rule in my Model and set $form->error('Model.field'); in my view |
# |
Aug 8th 2008, 12:15 |
agentbob |
teknoid: do you know of any examples? trying to look at dbo_source and model_php5 but it's not overly simple... |
# |
Aug 8th 2008, 12:13 |
teknoid |
agentbob: actually, no 1.1 supports 'or' arrays as well |
# |
Aug 8th 2008, 12:12 |
agentbob |
bah... guess i'll stick to custom sql string |
# |
Aug 8th 2008, 12:11 |
teknoid |
mdcatc: np |
# |
Aug 8th 2008, 12:11 |
teknoid |
agentbob: probably |
# |
Aug 8th 2008, 12:11 |
mdcatc |
teknoid: thanks! |
# |
Aug 8th 2008, 12:11 |
agentbob |
teknoid: is that 1.2 only? |
# |
Aug 8th 2008, 12:11 |
teknoid |
agentbob: see the manual under complex find conditions |
# |
Aug 8th 2008, 12:11 |
teknoid |
mdcatc: you don't, store it in the session |
# |
Aug 8th 2008, 12:10 |
mdcatc |
How do you add a condition to the passed params in the url? |
# |
Aug 8th 2008, 12:10 |
mdcatc |
How do I specify the condition in a url link? like for sort I would do http://localhost/app/controller/action/sort:created/order:desc |
# |
Aug 8th 2008, 12:09 |
agentbob |
when passing criteria array to findAll() how do you specify AND/OR |
# |
Aug 8th 2008, 12:05 |
teknoid |
mdcatc: yes, just like you would for find() |
# |
Aug 8th 2008, 12:04 |
mdcatc |
does pagination support conditions? I can set sort: direction: and limit: how do I set a condition in the passed args for pagination? is it possible? |
# |
Aug 8th 2008, 12:02 |
freebox2 |
( |