Log message #4264504

# At Username Text
# May 31st 2021, 11:17 kevin.pfeifer ok, thx :)
# May 31st 2021, 11:17 dereuromark jep, I dont think there is a way around that other than extending form helper to auto do that
# May 31st 2021, 11:14 slackebot fieldname with the corresponding text domain instead of the root app domain? Or do I now have to add a bunch of `'label' => __d('my_plugin', 'Name')` into my fields?
# May 31st 2021, 11:14 kevin.pfeifer One Question about translations in plugins I now moved a bunch of Code incl. templates into a plugin. Everything works pretty good but before (in the root app) the label for e.g. the input `$this->Form->control( 'name' )` was automatically translated without the need to set the `label` key. Now in my plugin i use `__d('my_plugin', 'Name')` to translate a given text. What do I have to tell my FormHelper to translate a
# May 31st 2021, 10:46 paolo.bragagni Hi in table.twig how to get the fields name (I'd like to use the search plugin for all fields)
# May 31st 2021, 08:35 rian.orie Howdy folks. If I were to look for a freelancer with a solid amount of experience with cake, where would I look?
# May 31st 2021, 06:52 k4t from my point of view everything looks fine, I also see thet whole authentication process is applied and request during it is poprulated with Identify object. But after exception is thrown and everything is get lost.
# May 31st 2021, 06:45 k4t checking
# May 31st 2021, 06:44 hmic Be aware that the error might happen in your middleware queue before auth is even applied#
# May 31st 2021, 06:44 hmic I don't see it handling Auth different from other Controllers, so I think you need to make sure it's beeing applied, Application.php, routes.php, whereever you set it up, besides the (App)Controller
# May 31st 2021, 06:44 k4t @admad any ideas?
# May 31st 2021, 06:43 k4t that is what what is inside of request attributes field, there should be also additional field Identity
# May 31st 2021, 06:43 slackebot <k4t>
# May 31st 2021, 06:43 k4t Generally from some reason it looks like that when error happens (e.g. user opening 404 page) than request object is not populated with Identity data
# May 31st 2021, 06:42 hmic I see. Just be aware of what I just mentioned, as it will break hard.
# May 31st 2021, 06:35 k4t Customer wants to display "Login" button on some error pages and it does not make sens to display them when use is logged in
# May 31st 2021, 06:33 hmic Side note, do you think it's a good idea? If something with Authentication is wrong, the error will not be rendered at all then...
# May 31st 2021, 06:32 k4t ``` public function initialize(): void { $this->loadComponent('Authentication.Authentication'); }```
# May 31st 2021, 06:32 k4t Yes
# May 31st 2021, 06:31 hmic k4t: is the ErrorsController setup to use authentication?
# May 31st 2021, 06:30 k4t Hi all, can anybody tell me why $this->Identity->isLoggedIn() function always returns FALSE when it is used inside of /Error/error400.php template? Even if user is logged in it will return FALSE for example when user is trying to open 404 url. Latest CakePHP 4 is used.
# May 30th 2021, 16:04 kevin.pfeifer indeed
# May 30th 2021, 16:00 etibor and one more thing selflesnes always brings selflesnes
# May 30th 2021, 16:00 etibor i think the first one is the worst one, became familier with the concept will help
# May 30th 2021, 15:14 kevin.pfeifer but you get into it after some time ;)
# May 30th 2021, 15:14 kevin.pfeifer the whole validation process can be quite complex :)
# May 30th 2021, 15:13 kevin.pfeifer :+1::the_horns:
# May 30th 2021, 15:13 etibor thank you very much your time, help end effort
# May 30th 2021, 15:13 etibor thank you now i can say its working totally
# May 30th 2021, 15:13 etibor :pray:
# May 30th 2021, 15:08 kevin.pfeifer but this all basically depends on what "logic" you want to implement
# May 30th 2021, 15:07 kevin.pfeifer otherwise you still get the error
# May 30th 2021, 15:07 kevin.pfeifer ```if(!empty($frat->_joinData->score )){ if( $frat->_joinData->score > $frat->maximal || $frat->_joinData->score<1 ){ } } ```
# May 30th 2021, 15:06 kevin.pfeifer so you would need something like that
# May 30th 2021, 15:06 kevin.pfeifer || doesn't "break" at first
# May 30th 2021, 15:06 kevin.pfeifer ah wait
# May 30th 2021, 15:04 kevin.pfeifer ```if( !empty($frat->_joinData->score ) || $frat->_joinData->score > $frat->maximal || $frat->_joinData->score<1 ){```
# May 30th 2021, 15:03 kevin.pfeifer it checks each value "if-part" one after the other
# May 30th 2021, 15:03 kevin.pfeifer put the !empty at first
# May 30th 2021, 15:02 etibor if($frat->_joinData->score > $frat->maximal || $frat->_joinData->score<1 || !empty($frat->_joinData->score )){
# May 30th 2021, 15:01 etibor its shows the validation custom error message