# |
Dec 10th 2017, 13:12 |
bravo-kernel |
ok, thanks for confirming |
# |
Dec 10th 2017, 13:12 |
admad |
@bravo-kernel yes the new authentic plugin includes jwt auth |
# |
Dec 10th 2017, 12:33 |
bravo-kernel |
@admad will it be the successor to your jwt-auth lib? |
# |
Dec 10th 2017, 12:32 |
bravo-kernel |
Anybody already using https://github.com/cakephp/authentication/ middleware? |
# |
Dec 10th 2017, 11:21 |
saeideng |
https://travis-ci.org/cakephp/docs/builds/314274638#L762 |
# |
Dec 10th 2017, 11:20 |
chinpei215 |
japanese translation team do that sometimes. |
# |
Dec 10th 2017, 11:20 |
chinpei215 |
patsuckow: in such cases, I think you can commit an incomplete .rst together, which contains the sections only, like this: https://raw.githubusercontent.com/cakephp/docs/4a4491792f192c83e7783abab81c3c1c6ef69f48/ja/core-libraries/httpclient.rst |
# |
Dec 10th 2017, 11:07 |
patsuckow |
Look at somebody: https://github.com/cakephp/docs/pull/5454 - Tell me what I'm doing is not right. The Travis CI build failed indicates that i must first translate another document ? |
# |
Dec 10th 2017, 07:36 |
patsuckow |
squalltua, try simply reinstalling the bake utility |
# |
Dec 9th 2017, 16:24 |
squalltua |
I try cake console bin/cake bake model users and got error about Exception: Unknown "as_array" filter. please help me |
# |
Dec 9th 2017, 16:23 |
squalltua |
Hi |
# |
Dec 9th 2017, 13:23 |
JD-Robbs |
(my use case is not something that can be achieved via default value on the database) |
# |
Dec 9th 2017, 13:22 |
JD-Robbs |
I wonder what's the best way to initialise entity properties. Should I override the constructor and set it there? |
# |
Dec 9th 2017, 12:47 |
patsuckow |
Right! Thank you so much! |
# |
Dec 9th 2017, 12:44 |
admad |
'Products.category_id IN' => $ids |
# |
Dec 9th 2017, 12:41 |
patsuckow |
Can somebody help me ?: Why when calling: $products = $this->Products->find()->select(['id', 'title', 'price', 'img'])->where(['Products.category_id' => $ids])->toArray(); an error is displayed: Cannot convert value to integer |
# |
Dec 9th 2017, 12:01 |
JD-Robbs |
Awesome, that PR fixes it |
# |
Dec 9th 2017, 12:00 |
JD-Robbs |
admad, thanks for the pointer! Had a look and I guess it's this: https://github.com/cakephp/cakephp/pull/11518 |
# |
Dec 9th 2017, 11:58 |
admad |
JD-Robbs: there's already an issue and PR for it on GitHub |
# |
Dec 9th 2017, 11:56 |
JD-Robbs |
I have an issue where debugging is rather unhelpful due to TypeError while the exception renderer expects an Exception. Would anyone know how this can be debugged? |
# |
Dec 9th 2017, 11:36 |
JD-Robbs |
saeideng, what I mean is that DebugKit doesn't load its routes "normally". Instead, it requires the routes.php during bootstrap. But this has helped me now as I am now doing the same thing to ensure my routes are available in my middleware. |
# |
Dec 9th 2017, 11:21 |
patsuckow |
Hello everybody! Except me, are there developers from Russia? |
# |
Dec 9th 2017, 10:35 |
saeideng |
and plugin routes |
# |
Dec 9th 2017, 10:35 |
saeideng |
yes |
# |
Dec 9th 2017, 10:11 |
JD-Robbs |
Ahaaa! DebugKit loads the routes in bootstrap.php |
# |
Dec 9th 2017, 10:04 |
saeideng |
match() for generating urls |
# |
Dec 9th 2017, 10:04 |
saeideng |
match() / pars() |
# |
Dec 9th 2017, 10:04 |
saeideng |
RouteClass has 2 methods |
# |
Dec 9th 2017, 10:03 |
saeideng |
what you mean from before/after route ? |
# |
Dec 9th 2017, 10:03 |
saeideng |
I'm not sure you able to apply RouteClass before/after of routes |
# |
Dec 9th 2017, 10:02 |
saeideng |
jd-robbs |
# |
Dec 9th 2017, 10:01 |
JD-Robbs |
Oh sorry xD |
# |
Dec 9th 2017, 10:01 |
saeideng |
ra7bi? |
# |
Dec 9th 2017, 10:01 |
JD-Robbs |
Yup, latest everything |
# |
Dec 9th 2017, 10:00 |
saeideng |
latest version of debugkit? |
# |
Dec 9th 2017, 10:00 |
JD-Robbs |
For example, how does DebugKit manage it to have it's routes defined before my app even reached the ROutingMiddleware middleware in my stack? |
# |
Dec 9th 2017, 09:58 |
JD-Robbs |
However, I need to run some code in a custom RouteClass *before* and some *after* certain groups of routes have been defined. Can this be solved somehow? |
# |
Dec 9th 2017, 09:57 |
JD-Robbs |
Argh, worked out it was the middleware order in Application |
# |
Dec 9th 2017, 09:54 |
JD-Robbs |
When I run Router::getRouteCollection() inside a middleware, I don't get any of my own routes yet (only ones from DebugKit are setup). So just wondering how I can get my own? |
# |
Dec 9th 2017, 08:55 |
ra7bi |
when i clicked on Variables |
# |
Dec 9th 2017, 08:55 |
ra7bi |
that was the browser console output |