# |
Aug 9th 2008, 10:16 |
B00mgo_M4N |
hello |
# |
Aug 9th 2008, 10:06 |
kalileo |
lol |
# |
Aug 9th 2008, 10:05 |
Anon323 |
err ... good idea. i was so fixated on validation rules. |
# |
Aug 9th 2008, 10:04 |
kalileo |
Anon323: how about a simple "if (!empty($yourfield)) go bananas;" in your controller before saving |
# |
Aug 9th 2008, 10:02 |
kalileo |
*field |
# |
Aug 9th 2008, 10:02 |
kalileo |
Anon323: if you put such a validation in your model validations it might stop you from ever entering data in that filed ;) |
# |
Aug 9th 2008, 10:00 |
Anon323 |
is it maxLength 0? |
# |
Aug 9th 2008, 10:00 |
Anon323 |
allowEmpty => true means the input can also be not-empty. |
# |
Aug 9th 2008, 10:00 |
Anon323 |
required => false means the input is optional (will be accepted if exists). |
# |
Aug 9th 2008, 10:00 |
Anon323 |
what is the rule to dismiss an input completely? |
# |
Aug 9th 2008, 09:55 |
kalileo |
Anon323: and if you have sensitive data there consider to only allow authenticated users to submit data |
# |
Aug 9th 2008, 09:54 |
kalileo |
Anon323: it's a good idea to do that |
# |
Aug 9th 2008, 09:50 |
minicaker |
¿? |
# |
Aug 9th 2008, 09:49 |
Anon323 |
so if I have 3 fields and my form only needs 2 and the attacker knows about the 3rd field and he manually adds it to the form cake will save it too? so i need to set up validation rules for all fields -- even if not used in a form? |
# |
Aug 9th 2008, 09:48 |
minicaker |
(sorry for my English) |
# |
Aug 9th 2008, 09:48 |
minicaker |
the "CRUD" views created for scaffolding... are they created in the app/views folder? |
# |
Aug 9th 2008, 09:48 |
minicaker |
ok |
# |
Aug 9th 2008, 09:47 |
minicaker |
a little question (sorry) |
# |
Aug 9th 2008, 09:47 |
Anon323 |
just ask ... |
# |
Aug 9th 2008, 09:47 |
minicaker |
Hello, could someone answer a little problem? (about scaffolding) |
# |
Aug 9th 2008, 09:43 |
minicaker |
hiç |
# |
Aug 9th 2008, 09:43 |
minicaker |
hola |
# |
Aug 9th 2008, 09:39 |
kalileo |
Cake will see the fields submitted and save them |
# |
Aug 9th 2008, 09:39 |
kalileo |
Anon323: just name it correctly and submit and then in your receiving controller method do your Model->save |
# |
Aug 9th 2008, 09:37 |
kalileo |
Anon323: doesn't matter who created the field |
# |
Aug 9th 2008, 09:34 |
Anon323 |
is every database table field accessable via a form input? e.g., if there is a field "foo", can someone manually add a form input element for "foo" so that the contained value will be automatically saved by cake? or will cake dismiss every form input element that was not created by cake itself? |
# |
Aug 9th 2008, 09:24 |
linked_ |
greetings |
# |
Aug 9th 2008, 09:23 |
lqdice__ |
http://www.oracle.com/technology/pub/articles/php_experts/rasmus_php.html |
# |
Aug 9th 2008, 09:23 |
lqdice__ |
good explanation by the creator of PHP on why its got messy function naming and some inconsistencies |
# |
Aug 9th 2008, 08:40 |
lqdice__ |
i hope they drop php4 in the next release |
# |
Aug 9th 2008, 08:39 |
francky06l |
next one will be 2.0 |
# |
Aug 9th 2008, 08:39 |
lqdice__ |
so 1.3 wont be out soon .. and i think they want to go 2.0 after 1.2 |
# |
Aug 9th 2008, 08:39 |
lqdice__ |
1.2 is not even GA yet |
# |
Aug 9th 2008, 08:39 |
cpierce_ |
oh 1.3 will be out in a week don't switch to 1.2 wait for 1.3 |
# |
Aug 9th 2008, 08:39 |
cpierce_ |
i was making sure there wasn't something like |
# |
Aug 9th 2008, 08:35 |
markstory |
has a long history of performance. Doesnt' have all the 'bloat' of pagination, and fancy form generation. |
# |
Aug 9th 2008, 08:35 |
markstory |
I'm a fan of 0.6 |
# |
Aug 9th 2008, 08:30 |
AD7six |
cpierce_: what kind of answer did you expect |
# |
Aug 9th 2008, 08:29 |
cpierce_ |
AD7six: your sarcasm speaks tons! |
# |
Aug 9th 2008, 08:29 |
AD7six |
cpierce_: for future projects 1.2 is obviously a terrible choice. use 0.92 |
# |
Aug 9th 2008, 08:29 |
francky06l |
cpierce_: if its a new project you should go for 1.2 .. 1.1 is end of life .. |