Log message #4226738

# At Username Text
# 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
# Feb 13th 2020, 06:55 javier.villanueva ok
# Feb 13th 2020, 06:55 md.islam11 trying again
# Feb 13th 2020, 06:55 md.islam11 okay
# Feb 13th 2020, 06:55 javier.villanueva I think that 'docs' => true is enought
# Feb 13th 2020, 06:54 md.islam11 ```protected $_accessible = [ 'request_id' => true, 'iexpense_request_id' => true, 'iexpense_category_id' => true, ......... . ..... 'docs.*' => true, ];```
# Feb 13th 2020, 06:51 javier.villanueva (accesible var)
# Feb 13th 2020, 06:51 javier.villanueva could you show your requestItem.php?
# Feb 13th 2020, 06:47 md.islam11 its not working
# Feb 13th 2020, 06:47 md.islam11 hmm
# Feb 13th 2020, 06:47 javier.villanueva two ways are good ....
# Feb 13th 2020, 06:46 javier.villanueva nop...your example its ok
# Feb 13th 2020, 06:43 javier.villanueva try with ```$request=$this->Requests->patchEntity($this->Requests->newEntity(), $requestData,['associated' => ['RequestItems', 'RequestItems.Docs]]]);```
# Feb 13th 2020, 06:42 javier.villanueva in my working examples I have docs => true
# Feb 13th 2020, 06:41 javier.villanueva you have "accesible" docs.*
# Feb 13th 2020, 06:39 javier.villanueva wait a minute
# Feb 13th 2020, 06:38 md.islam11 when i retrieve the data request. its working . So I think association is OK.
# Feb 13th 2020, 06:37 md.islam11 request [hasMany ] items and items hasMany docs
# Feb 13th 2020, 06:37 javier.villanueva your reltionships are hasMany?