# |
Oct 6th 2016, 11:02 |
maikh |
no, dont works... |
# |
Oct 6th 2016, 10:59 |
maikh |
ok, i did a copy of the correct working rules... now it works... hm... |
# |
Oct 6th 2016, 10:57 |
maikh |
hm, i dont can see a typo |
# |
Oct 6th 2016, 10:55 |
hmic |
you obviously missed something, i've already mentioned a typo as this would be the first random error |
# |
Oct 6th 2016, 10:53 |
maikh |
thats strange for me. |
# |
Oct 6th 2016, 10:53 |
maikh |
yes, i know. but i dont understand why it works on the one field but not on the other field. |
# |
Oct 6th 2016, 10:52 |
hmic |
still the wrong approach to the requrirement |
# |
Oct 6th 2016, 10:51 |
maikh |
i did it because my customer dont wants datepickers, only inputs for that. |
# |
Oct 6th 2016, 10:51 |
maikh |
jep |
# |
Oct 6th 2016, 10:51 |
hmic |
so cake does not even know they are date fields? :p |
# |
Oct 6th 2016, 10:51 |
maikh |
these fields are bothe declared as varchar fields in db. |
# |
Oct 6th 2016, 10:49 |
hmic |
maikh: whats the database for those two fields? if the code is identical - no typos :p, the database can still be a point - like a NULL vs. NOT NULL field |
# |
Oct 6th 2016, 10:46 |
maikh |
has anyone a hint on this for me? |
# |
Oct 6th 2016, 10:44 |
slackebot |
date which is not in future the validator returns false on futureDate. -> works like excepted now i want the same behaivour on date_from. code is the same, but behaivour is an other. |
# |
Oct 6th 2016, 10:44 |
slackebot |
der Zukunft liegt.' ] ]) ->add('date_from', [ 'date' => [ 'rule' => ['date', ['dmy']], 'message' => 'Bitte gültiges Datum eingeben.', 'last' => true, ], 'futureDate' => [ 'rule' => [$this, 'futureDate'], 'message' => 'Bitte geben Sie ein Datum ein was in der Zukunft liegt.' ] ])``` on the appointment, this works very well. if i type a value like ```aaa``` the validator returns false on date validator |
# |
Oct 6th 2016, 10:44 |
maikh |
hey there. i come today with a little validation problem :slightly_smiling_face: i have to fields which i want to validate. first i want it is a date and after that i want the date is in future ``` ->add('appointment', [ 'date' => [ 'rule' => ['date', ['dmy']], 'message' => 'Bitte gültiges Datum eingeben.', 'last' => true, ],'futureDate' => [ 'rule' => [$this, 'futureDate'], 'message' => 'Bitte geben Sie ein D |
# |
Oct 6th 2016, 10:42 |
dereuromark |
You are right. Can be removed |
# |
Oct 6th 2016, 10:41 |
ndm |
@dereuromark Do you really actually need the `id`, ie is your code dependent on it? And if it is, wich `id` would be the "correct" one if you have multiple rows in the group? I don't know what your code does, but I could imagine that relying on one of the the id(s) of a group indicates that something is wrong here. |
# |
Oct 6th 2016, 10:39 |
acosonic |
XML actually :) works good |
# |
Oct 6th 2016, 10:37 |
kennydang |
as i'm sending an array |
# |
Oct 6th 2016, 10:37 |
hmic |
in cake, use debugkit "history" to show your ajax requests |
# |
Oct 6th 2016, 10:37 |
kennydang |
so my data is undefined? |
# |
Oct 6th 2016, 10:37 |
kennydang |
it said undefined |
# |
Oct 6th 2016, 10:37 |
Neon1024 |
If youâ??re in Chrome :) |
# |
Oct 6th 2016, 10:37 |
Neon1024 |
^ and check the XHR button |
# |
Oct 6th 2016, 10:37 |
hmic |
kennydang: press F12 key in your brower and go to the network tab |
# |
Oct 6th 2016, 10:36 |
kennydang |
as when sending out AJAX post request, how can we view the sending data? |
# |
Oct 6th 2016, 10:35 |
kennydang |
currently, idk how to track my post request |
# |
Oct 6th 2016, 10:35 |
kennydang |
i'm student and cake fresh man |
# |
Oct 6th 2016, 10:34 |
mamchenkov |
any ideas? |
# |
Oct 6th 2016, 10:34 |
mamchenkov |
the method works, it's just the unit test issue |
# |
Oct 6th 2016, 10:34 |
mamchenkov |
I have an issue with my unit tests .. I have a method that uses $this->Html->link() and during a plugin test run it throws the following: include(vendor/cakephp/cakephp/tests/test_app/config/routes.php): failed to open stream: No such file or directory |
# |
Oct 6th 2016, 10:34 |
inoas |
heya |
# |
Oct 6th 2016, 10:34 |
kennydang |
hi all cake bakers :slightly_smiling_face: |
# |
Oct 6th 2016, 10:33 |
mamchenkov |
hey Neon1024 |
# |
Oct 6th 2016, 10:33 |
inoas |
like say Flysystem for logs, Redis for Cache/Sessions |
# |
Oct 6th 2016, 10:33 |
Neon1024 |
Morning mamchenkov |
# |
Oct 6th 2016, 10:33 |
acosonic |
XML loading is a crap, it crashes on this feed: http://about.van.fedex.com/feed/?post_type=newsroom |
# |
Oct 6th 2016, 10:33 |
mamchenkov |
hello :) |
# |
Oct 6th 2016, 10:32 |
Neon1024 |
Your requirements are ambiguous birdy247! ;) |
# |
Oct 6th 2016, 10:32 |
inoas |
dereuromark ah about core, nah no point, i was only about instance (cache, session, logs etc) |