# |
Aug 7th 2008, 22:06 |
cobol |
so if i have a paginated view, how would i go about setting up something like 'only show records created between these dates' |
# |
Aug 7th 2008, 22:05 |
markstory |
lqdice__: I dunno, about finding out what field. |
# |
Aug 7th 2008, 22:04 |
lqdice__ |
or perhaps have it print out which fields its checking for and which its been submitted |
# |
Aug 7th 2008, 22:04 |
lqdice__ |
markstory: is it possible to know which field ? |
# |
Aug 7th 2008, 22:04 |
markstory |
hash of fields is wrong. |
# |
Aug 7th 2008, 22:04 |
lqdice__ |
markstory: anyway to see why the security component is not letting my form submit ? |
# |
Aug 7th 2008, 22:02 |
Jonah |
hmm k |
# |
Aug 7th 2008, 22:01 |
markstory |
Jonah: set a more complete validation rule, I would think. |
# |
Aug 7th 2008, 22:01 |
markstory |
) |
# |
Aug 7th 2008, 22:01 |
markstory |
its in Model::invalidFields() though! |
# |
Aug 7th 2008, 22:01 |
Jonah |
appmodel? |
# |
Aug 7th 2008, 22:01 |
Jonah |
how can I change them? |
# |
Aug 7th 2008, 22:01 |
markstory |
Jonah: I don't know off the top of my head. :) |
# |
Aug 7th 2008, 22:01 |
markstory |
Snapp: I do camelcased. |
# |
Aug 7th 2008, 22:01 |
Jonah |
what are the defaults for validation? |
# |
Aug 7th 2008, 22:00 |
markstory |
it merges the simple regex with the defaults for validation which have required == true. |
# |
Aug 7th 2008, 21:59 |
markstory |
Jonah: not a bug. |
# |
Aug 7th 2008, 21:54 |
Snapp |
What is the convention for function names in controllers? |
# |
Aug 7th 2008, 21:53 |
stabb |
jerryleeeeeeeeeee |
# |
Aug 7th 2008, 21:53 |
Jonah |
'rule' => VALID_EMAIL, causes it to think it is required |
# |
Aug 7th 2008, 21:53 |
Jonah |
This I found a bug |
# |
Aug 7th 2008, 21:52 |
Jonah |
nvm |
# |
Aug 7th 2008, 21:52 |
jerrylee |
and what if i did want it to redirect to listing()? |
# |
Aug 7th 2008, 21:52 |
Snapp |
The Conventions for controller function names is camelCased? |
# |
Aug 7th 2008, 21:51 |
Jonah |
in the model i suppose? |
# |
Aug 7th 2008, 21:50 |
Jonah |
how do I set them as required? |
# |
Aug 7th 2008, 21:50 |
jerrylee |
hello, an interesting question, if i turn on admin routing, in adm_delete() i called redirect('listing'), how does it know it's adm_listing() instead of listing()?? |
# |
Aug 7th 2008, 21:50 |
Jonah |
not sure why it thinks the email is required but not the others... |
# |
Aug 7th 2008, 21:50 |
Jonah |
huh... |
# |
Aug 7th 2008, 21:50 |
markstory |
Jonah: required field |
# |
Aug 7th 2008, 21:48 |
polywog |
without much logic... heh |
# |
Aug 7th 2008, 21:47 |
polywog |
subarray is numeric too |
# |
Aug 7th 2008, 21:47 |
polywog |
if i have a numeric array, and subarray, how can I sum the values of the subarray? |
# |
Aug 7th 2008, 21:46 |
Jonah |
the form helper is making one of my field's label bold. anyone know why? |
# |
Aug 7th 2008, 21:43 |
markstory |
Jonah: nice :) |
# |
Aug 7th 2008, 21:41 |
SamuraiDio |
is there how to, after add/edit redurect back to the page i was? |
# |
Aug 7th 2008, 21:41 |
Jonah |
i documented it too so hopefully no one else will have the same problem |
# |
Aug 7th 2008, 21:40 |
lqdice__ |
yea |
# |
Aug 7th 2008, 21:40 |
Jonah |
you just put the expression in the key |
# |
Aug 7th 2008, 21:40 |
markstory |
Jonah: so no value for the array key neat :) have to remember that. |
# |
Aug 7th 2008, 21:40 |
Jonah |
array('conditions' => array('Post.email_sent ! = Post.status')) |