# |
Feb 18th 2020, 09:17 |
challgren |
@kaliel I hear yah, I’m dealing with the same issue. Havent found a solution just yet |
# |
Feb 18th 2020, 09:17 |
kaliel |
i'd like to achieve the same i was doing in 3.8 eg redirect to /login if url is prefixed and use role dont match that prefix |
# |
Feb 18th 2020, 09:16 |
jotpe |
@challgren you need a mancave w/o mobile reception :) |
# |
Feb 18th 2020, 09:16 |
kaliel |
yes sure, but i was looking for a redirect with the Authorization plugin |
# |
Feb 18th 2020, 09:15 |
challgren |
@kaliel its unauthenticatedRedirect https://github.com/cakephp/authentication/commit/0631e449e1d1fbefebc33aad4f4b8406cc14704a |
# |
Feb 18th 2020, 09:13 |
challgren |
Too many people bug me during the daytime hours |
# |
Feb 18th 2020, 09:13 |
kaliel |
There is an `unauthenticatedRedirect` in new Authenticate plugin, but is there an `unauthorizedRedirect` in new Autorization plugin ? |
# |
Feb 18th 2020, 09:12 |
challgren |
Ahh Im a night owl! |
# |
Feb 18th 2020, 09:12 |
spriz |
Holy moly! @challgren you should be sleepin' now! :) |
# |
Feb 18th 2020, 09:08 |
challgren |
Does :cakephp: make you hungry? :P |
# |
Feb 18th 2020, 09:07 |
neon1024 |
Aww, :croissant: makes me hungry |
# |
Feb 18th 2020, 08:56 |
jotpe |
Hi guys |
# |
Feb 18th 2020, 08:27 |
alexdd55976 |
morning |
# |
Feb 18th 2020, 08:23 |
kaliel |
morning all :croissant::coffee: |
# |
Feb 18th 2020, 07:36 |
chris301 |
thanks for that - we’ll give it a go today :) |
# |
Feb 18th 2020, 05:51 |
slackebot |
!tias |
# |
Feb 18th 2020, 05:51 |
slackebot |
Command sent from Slack by conehead: |
# |
Feb 18th 2020, 05:47 |
latenal |
I used to have the database and the cakephp default timezone in UTC. Now I had to change the cakephp default timezone to America/Mexico_City but the database configurations stays in UTC. The question is will it display date correctly? |
# |
Feb 18th 2020, 03:53 |
challgren |
Ughh I need more coffee |
# |
Feb 18th 2020, 03:49 |
challgren |
Yeah if your using it to population options in a select should be fine |
# |
Feb 18th 2020, 03:48 |
francisdoydora |
thank you, so safe to assume I can remove toArray() :) |
# |
Feb 18th 2020, 03:47 |
challgren |
@francisdoydora kind of https://github.com/cakephp/cakephp/blob/master/src/ORM/Table.php#L1362 |
# |
Feb 18th 2020, 03:08 |
francisdoydora |
```->find('list', ['limit' => 200])``` |
# |
Feb 18th 2020, 02:37 |
latenal |
The psr-6 is a doesn’t have publishing to a channel |
# |
Feb 18th 2020, 02:18 |
latenal |
Is there any doc or example? |
# |
Feb 18th 2020, 02:12 |
lpj145 |
you can configure redis and have a good way to use him. |
# |
Feb 18th 2020, 02:10 |
lpj145 |
@latenal cake have psr-6 yet. |
# |
Feb 18th 2020, 02:10 |
latenal |
Hi! Is there any redis plug-in? |
# |
Feb 17th 2020, 23:02 |
k4t |
\ o / |
# |
Feb 17th 2020, 23:02 |
k4t |
finally! I can go sleep! |
# |
Feb 17th 2020, 22:53 |
k4t |
thanks! |
# |
Feb 17th 2020, 22:50 |
k4t |
ok... that was it ;P |
# |
Feb 17th 2020, 22:46 |
ndm |
Oh I didn't really pay attention the first time. I'm not sure if additional route parameters are being included automatically, ie the slug. |
# |
Feb 17th 2020, 22:44 |
k4t |
@ndm https://gist.github.com/K4T/646b762ccfece46f5e3d6a45859e8741 |
# |
Feb 17th 2020, 22:41 |
k4t |
except these 2 |
# |
Feb 17th 2020, 22:40 |
k4t |
I will remove all routes |
# |
Feb 17th 2020, 22:40 |
ndm |
My first instinct would be that there's an additional route connected that catches your URL |
# |
Feb 17th 2020, 22:40 |
ndm |
Well, the initial problem is solved, now there's another one :) What other routes do you have connected? Ideally post all the routes and/or the `bin/cake routes` results |
# |
Feb 17th 2020, 22:37 |
k4t |
but problem still not solved, I am not getting: /my-editions/view?t=test |
# |
Feb 17th 2020, 22:36 |
k4t |
```public function match(array $url, array $context = []) { $match = parent::match($url, $context); return ($match) ? $match . '/' : false; }``` |
# |
Feb 17th 2020, 22:36 |
k4t |
Route class fixed: |