Log message #4212615

# At Username Text
# Nov 7th 2019, 09:07 javier.villanueva I am using Cake\I18n\Date; , and my I18n::setLocale('es_ES'); but dates always are shown in english ...
# Nov 7th 2019, 08:55 challgren Pieceof the chat is in slack
# Nov 7th 2019, 08:45 javier.villanueva morning all
# Nov 7th 2019, 08:02 pieceof im looking for fresh news about jwt
# Nov 7th 2019, 08:01 pieceof yo all, is there anyway to download the logs of the channel from topic url ?
# Nov 7th 2019, 07:53 slackebot1 <dakota>
# Nov 7th 2019, 07:44 conehead Morning
# Nov 7th 2019, 07:42 jotpe Morning!
# Nov 7th 2019, 06:19 Fastidius and one more question you probably have more insight than I on.... Saving a record theres a redirect that happens ....is there a variable for the previous page? im basically trying to make a add form where i have a list hit add then go back to wherever i cam from.
# Nov 7th 2019, 06:18 Fastidius ahh that is very helpful.
# Nov 7th 2019, 04:52 challgren https://book.cakephp.org/3/en/development/routing.html#route-elements
# Nov 7th 2019, 04:51 challgren Wouldn’t `$this->request->getParam('id')` have your info?
# Nov 7th 2019, 04:32 Fastidius it seems like a pretty easy thing to do but do i do it in the Controller?
# Nov 7th 2019, 04:29 Fastidius i want to grab the ID used in the URL and put it into a session variable for use elsewhere with 'Val' in selects etc
# Nov 7th 2019, 04:28 Fastidius is there a variable that is passed when you go to an ID via a controller?
# Nov 6th 2019, 22:53 amanfulgence how cane use it please isAuthorized
# Nov 6th 2019, 22:26 dev.cyrusjayson This keep redirecting to /users/products instead of /products/index I am using cakedc ``` $this->Auth->config('loginRedirect', ["controller"=>"Products", "action"=>"index"]); ```
# Nov 6th 2019, 22:02 dev.cyrusjayson @ricksaccous not idea I think. how to change this $this->Auth->redirectUrl() ? maybe you know. thanks
# Nov 6th 2019, 21:58 ricksaccous also related reading
# Nov 6th 2019, 21:57 ricksaccous https://book.cakephp.org/3/en/core-libraries/events.html
# Nov 6th 2019, 21:56 ricksaccous there you go
# Nov 6th 2019, 21:56 ricksaccous @dev.cyrusjayson https://github.com/CakeDC/users/blob/master/Docs/Documentation/Events.md
# Nov 6th 2019, 21:55 ricksaccous I think there are
# Nov 6th 2019, 21:55 ricksaccous extend the plugin, or use the provided callbacks if there are any
# Nov 6th 2019, 21:35 dev.cyrusjayson I want to log when user login and logout in cakedc user. anyone know how to do it?
# Nov 6th 2019, 20:53 maymeow @ckjksl thank you but it was easier :slightly_smiling_face: ``` //... $this->loadComponent('Auth', [ 'authError' => __('You are not authorized to access that location.'), // ... ```
# Nov 6th 2019, 20:52 martonmiklosqdev with an entity which looks correct
# Nov 6th 2019, 20:51 martonmiklosqdev from the model callbacks of the Units only the beforeMarshal got called
# Nov 6th 2019, 20:51 martonmiklosqdev and only the UnitType is got saved
# Nov 6th 2019, 20:51 martonmiklosqdev ``` Array ( [name] => asd [base_unit] => Array ( [name] => asd [short_name] => asd ) ) ```
# Nov 6th 2019, 20:50 martonmiklosqdev my post data is the following:
# Nov 6th 2019, 20:50 twelte I have the problem that, although my max-exec-time is set to 5 via my php-ini, scripts are running forever and are not killed with apache :/
# Nov 6th 2019, 20:50 martonmiklosqdev and this is how I try to save it: ``` if ($this->request->is('post')) { $unitType = $this->UnitTypes->patchEntity( $unitType, $this->request->getData(), ['associated' => ['BaseUnits']] ); if ($this->UnitTypes->save($unitType, ['associated' => ['BaseUnits']])) {```
# Nov 6th 2019, 20:49 martonmiklosqdev this is how I setup the association in the UnitTypes
# Nov 6th 2019, 20:49 martonmiklosqdev ```$this->belongsTo('BaseUnits', [ 'foreignKey' => 'base_unit_id', 'className' => 'Units', ]);```
# Nov 6th 2019, 20:49 twelte Hey! Does somebody know a generic php-channel on freenode that I could get help at?
# Nov 6th 2019, 20:49 martonmiklosqdev I have UnitTypes which belongsTo an Unit
# Nov 6th 2019, 20:48 martonmiklosqdev I having some trouble saving a new entity to the database together with saving a belongsto associated data
# Nov 6th 2019, 20:47 martonmiklosqdev Hi folks,
# Nov 6th 2019, 20:41 ckjksl the file in your `src/Component` will "overwrite" the code one in `vendor` when Cake loads up
# Nov 6th 2019, 20:40 ckjksl @maymeow it's in the Auth component. `vendor/cakephp/cakephp/src/Controller/Component/AuthComponent.php`. But don't change it there. Copy that file to your `src/Component` folder and change it there