Log message #4226756

# At Username Text
# 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?
# Feb 13th 2020, 09:23 christianjohn.gss advice on learning cakephp? without prior experience?
# Feb 13th 2020, 09:23 javier.villanueva $this->request->referer->getParam('action') ? xD
# Feb 13th 2020, 09:22 challgren $this->referer its really $this->request->referer
# Feb 13th 2020, 09:22 challgren https://github.com/cakephp/cakephp/blob/master/src/Controller/Controller.php#L726
# Feb 13th 2020, 09:22 javier.villanueva : / .... but if I make it I get 'action' of request (next page), and I want get referer (previous page)
# Feb 13th 2020, 09:22 pieceof +1
# Feb 13th 2020, 09:21 challgren $this->request->getParam(‘action’)
# Feb 13th 2020, 09:21 javier.villanueva and I want controller, action of this url
# Feb 13th 2020, 09:21 javier.villanueva i get the referer with $this->referer()....
# Feb 13th 2020, 09:20 challgren huh?
# Feb 13th 2020, 09:20 javier.villanueva yes, but is no the request...is the referer
# Feb 13th 2020, 09:20 challgren $this->request->getParam(‘controller’)
# Feb 13th 2020, 09:19 javier.villanueva Are there any (directly) method to get controller/action/id from url ?
# Feb 13th 2020, 09:13 challgren Ohh damm you already got a PR for it
# Feb 13th 2020, 08:59 CakePHP_User I'm still confused which bootstrap.php file should I load
# Feb 13th 2020, 08:57 challgren Ok i can include one
# Feb 13th 2020, 08:55 CakePHP_User Hi. Is it possible to use PHPStan with CakePHP 2?
# Feb 13th 2020, 08:41 spriz Ah, some is in https://book.cakephp.org/3/en/controllers/components/authentication.html
# Feb 13th 2020, 08:40 spriz didn't move to the plugins yet
# Feb 13th 2020, 08:40 spriz are the docs gone from the 3.x book about "old" authentication methods? :P
# Feb 13th 2020, 08:39 admad @challgren https://github.com/cakephp/cakephp/issues/14276 always include stack trace with issue :)
# Feb 13th 2020, 06:58 javier.villanueva nice
# Feb 13th 2020, 06:58 md.islam11 its working now. :+1::skin-tone-2:
# Feb 13th 2020, 06:57 md.islam11 accessible[docs.*]
# Feb 13th 2020, 06:57 md.islam11 that was the issue