# |
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) |
# |
Oct 6th 2016, 10:32 |
Neon1024 |
Or 2016-01-01â?>January</ |
# |
Oct 6th 2016, 10:32 |
Neon1024 |
<option value=â??1â?>January</option> ? |
# |
Oct 6th 2016, 10:31 |
Neon1024 |
Surely thatâ??s just 1 |
# |
Oct 6th 2016, 10:29 |
birdy247 |
I am pondering the best way to do this |
# |
Oct 6th 2016, 10:28 |
birdy247 |
I am trying to generate a dropdown list of months in the last year, with a value of the 1st day of the month |
# |
Oct 6th 2016, 10:25 |
dereuromark |
and it was not about the cache, but the core files, which is the worst idea as I said |
# |
Oct 6th 2016, 10:25 |
dereuromark |
ionas: because that is maintenance hell, should be clear to you IMO :slightly_smiling_face: |
# |
Oct 6th 2016, 10:24 |
dereuromark |
@ndm: Yeah, it should work like in mysql, so that it is grouped by type and message, but I also want to retrieve the id if possible, thx |
# |
Oct 6th 2016, 10:22 |
inoas |
dereuromark / rudy - why not run multiple app servers with one shared cache? |
# |
Oct 6th 2016, 10:21 |
inoas |
the most it has similar aside that is that it uses liquid template which is very similar to twig (and there is a twig view plugin for cake) |
# |
Oct 6th 2016, 10:20 |
inoas |
has always been Rails |
# |
Oct 6th 2016, 10:19 |
Neon1024 |
I was certain that Shopify was Cake at some point |
# |
Oct 6th 2016, 10:19 |
Neon1024 |
Bit of a beast to undertake, Iâ??m just curious |
# |
Oct 6th 2016, 10:19 |
Neon1024 |
Anyone done that yet |