Log message #4226781

# At Username Text
# Feb 13th 2020, 09:42 javier.villanueva but if therer are one for it...
# Feb 13th 2020, 09:42 challgren Oh I think router has a function
# Feb 13th 2020, 09:42 javier.villanueva I am creating a function for it
# Feb 13th 2020, 09:41 javier.villanueva yes!
# Feb 13th 2020, 09:41 challgren @javier.villanueva are you trying to reverse route the referer?
# Feb 13th 2020, 09:41 spriz Crap - nope :P
# Feb 13th 2020, 09:40 spriz I think it's missing Crud API listener :)
# Feb 13th 2020, 09:38 spriz also response is not in `data` like Crud usually does :thinking_face:
# Feb 13th 2020, 09:38 challgren Hmm I'm not sure I don't use crud
# Feb 13th 2020, 09:38 spriz No caching - same even after rebuilding a new docker container
# Feb 13th 2020, 09:38 spriz I have a hunch that it's some view class or something alike - but it is using JsonView properly
# Feb 13th 2020, 09:37 challgren Caching?
# Feb 13th 2020, 09:37 spriz it's even there with debug off :S
# Feb 13th 2020, 09:37 challgren Debug?
# Feb 13th 2020, 09:36 spriz I know previously I've had it and it was because something was not loaded/configured correctly but I cannot figure out what it was... Anyone got any ideas?
# Feb 13th 2020, 09:36 spriz Using Crud and JSON API I started having `"_isSearch": false,` and `"viewVar": "users",` in my JSON response
# Feb 13th 2020, 09:34 challgren Check your path order in your rc files
# Feb 13th 2020, 09:32 challgren my guess is the which command was probably built like 10 years ago when PHP 4 was compiled so its probably not really up to date
# Feb 13th 2020, 09:32 conehead @challgren Yes, that seems to be the problem
# Feb 13th 2020, 09:32 challgren Im also guessing the 2.x to 3.x jump probably turned a lot of people off in the beginning
# Feb 13th 2020, 09:32 javier.villanueva only you need the official documentation
# Feb 13th 2020, 09:31 javier.villanueva @christianjohn.gss Cakephp is more easy, than you dont need youtube tutorials
# Feb 13th 2020, 09:31 christianjohn.gss i see cakephp tutorials on youtube for about 3 - 5 years ago. thats why i tried to join this slack to get a more hands on help.
# Feb 13th 2020, 09:30 challgren @christianjohn.gss because cake is really open source and laravel probably has lots of money to throw at docs and flashy videos
# Feb 13th 2020, 09:29 conehead I will check thanks
# Feb 13th 2020, 09:29 javier.villanueva I can create a function to reverse url to controller/action.... but I wanted to know if there was something self
# Feb 13th 2020, 09:29 conehead I just dont get it because when I use "which" it should tell me the binary for my user. And yes 4.4.9..."fast and secure german webserver"
# Feb 13th 2020, 09:29 challgren which maybe finding /usr/bin/php first instead of /usr/local/bin/php
# Feb 13th 2020, 09:29 challgren @conehead you might have a alias or PATH set before the /usr/bin/php
# Feb 13th 2020, 09:28 pieceof redirect loop ahead
# Feb 13th 2020, 09:28 pieceof maybe keep in session a last page to try to redirect after impersonate
# Feb 13th 2020, 09:28 christianjohn.gss why is cakephp doesnt have a large community? compared to laravel? when its also good?
# Feb 13th 2020, 09:28 javier.villanueva yes... but in this moment I am in /roles/change/.... then getParam() -> is controller : roles, action: change.... But I find controller: users, action: view :)
# Feb 13th 2020, 09:27 challgren Ok well the getParam() will get your controller and action
# Feb 13th 2020, 09:27 christianjohn.gss i think it depends on the profile of your bash? i use mac and i get this sometimes on different project directories
# Feb 13th 2020, 09:25 javier.villanueva I am in a controller/action.... for instance /users/view/4, then I change my rol (because my app have multiple roles) ... then I want to redirect to same /users/view/4 (referer).... but if this role has permission (I check permission with $this->AuthUser->hasAccess(['controller', 'action').... Then I need controller and action of referer
# Feb 13th 2020, 09:25 slackebot 1997-2008 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies (uiserver):u97532347:~/```
# Feb 13th 2020, 09:25 conehead Anyone knows stuff about linux here? :) How is it possible that the php versions differ here? ```(uiserver):u97532347:~/ which php /usr/bin/php (uiserver):u97532347:~/ php -v PHP 7.3.14 (cli) (built: Jan 27 2020 10:18:20) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.14, Copyright (c) 1998-2018 Zend Technologies (uiserver):u97532347:~/ /usr/bin/php -v PHP 4.4.9 (cgi-fcgi) (built: Aug 29 2019 12:59:15) Copyright (c)
# Feb 13th 2020, 09:24 challgren https://book.cakephp.org/4/en/tutorials-and-examples.html
# Feb 13th 2020, 09:23 challgren book.cakephp.org
# Feb 13th 2020, 09:23 challgren What are you trying to do?