Log message #4263919

# At Username Text
# May 24th 2021, 23:23 ndm I'd assume that your webhook is a separate request, and therefore a separate connection. Note that internally the id is populated using the last insert ID too.
# May 24th 2021, 23:21 rightscoreanalysis a webhook is bein gprocessed for another order, so the last InserID might not be what you expect it to be
# May 24th 2021, 23:21 rightscoreanalysis I mean say a customer updated an Order with a purchase using the frontend
# May 24th 2021, 23:18 ndm Probably depends on your DBMS and on what you mean by "_resources_". In MySQL for example the last insert ID is per-connection.
# May 24th 2021, 22:40 rightscoreanalysis want to make sure I am correct in what I am saying, better to use $this->Model->id ?
# May 24th 2021, 22:40 rightscoreanalysis trying to explain that it is risky and shouldn't be relied on to find *your* last insert id
# May 24th 2021, 22:39 rightscoreanalysis lastInsertId is the last insert id to the db from any resources is that correct?
# May 24th 2021, 19:34 david thank you @kevin.pfeifer
# May 24th 2021, 19:33 kevin.pfeifer but haven't dealt with routes that deep till now
# May 24th 2021, 19:32 kevin.pfeifer otherwise i would guess you would need to create a custom route class to parse the URL https://book.cakephp.org/4/en/development/routing.html#custom-route-classes and then redirect on that match to whatever you need https://book.cakephp.org/4/en/development/routing.html#redirect-routing
# May 24th 2021, 19:31 david it was only a try
# May 24th 2021, 19:31 david yes @kevin.pfeifer, is the way i'm doing right now
# May 24th 2021, 19:30 kevin.pfeifer i think you are faster when you do that via a .htaccess rewrite rule
# May 24th 2021, 19:19 david I can't figure how to use wildcards in redirections, or if it is possible
# May 24th 2021, 19:18 david is there any smart way to redirect using routes all urls containing a word? Something like "redirect /%wp% to /404"
# May 24th 2021, 19:16 david Hello :)
# May 24th 2021, 13:43 michal_kotus Hi, @khalil, I am not sure, Mercury is disabled, gonna check. Thank you
# May 24th 2021, 13:40 khalil And when I remove [] from the field it sends one value instead of multiple
# May 24th 2021, 13:23 khalil @michal_kotus You have an SMTP server installed on your machine?
# May 24th 2021, 13:22 slackebot What do I miss?
# May 24th 2021, 13:22 michal_kotus Hello, I am trying to use https://book.cakephp.org/4/en/core-libraries/email.html#creating-reusable-emails. I created new project, baked all Users, added Authentication plugin, added login page, added code examples from cookbook (link above), added template `templates/email/text/welcome_mail.php` . I do use XAMPP, so in `php.ini` I put `SMTP = localhost` and `smtp_port = 25`, but I get: `Could not send email: unknown`.
# May 24th 2021, 13:20 khalil @admad did both of those and the issue remains
# May 24th 2021, 13:10 etibor so i must say clerk's users controller means admin's controller
# May 24th 2021, 13:06 etibor but does not helped
# May 24th 2021, 13:06 etibor i tried like this : $routes->connect('/clerk', ['prefix'=>'admin']);
# May 24th 2021, 13:05 etibor how can i redirect my clerk prefix to admin prefix ?
# May 24th 2021, 13:04 etibor hello all
# May 24th 2021, 10:58 khalil Ah ok perfect, thanks!
# May 24th 2021, 10:58 admad Also you need multiple => true
# May 24th 2021, 10:56 admad The fieldname arg should be just `availability` without the [].
# May 24th 2021, 10:42 khalil Mind you I have no validation set on this field
# May 24th 2021, 10:32 khalil But I want the field to post a blank array in order to remove the saved ones, what am I doing wrong?
# May 24th 2021, 10:31 khalil It's because when nothing is selected, the field is not being posted
# May 24th 2021, 10:31 khalil When an option is selected in the select box, everything works properly, but when I don't select anything, I get an error: *Missing field 'availability' in POST data*
# May 24th 2021, 10:30 khalil Hello! I'm facing an issue with the security component (most probably), I have a form that has a ```<?= $this->Form->select('availability[]', $countries, ["multiple", "value" => []] ?>```
# May 24th 2021, 10:19 rudy1976s @kevin.pfeifer thank you !
# May 24th 2021, 10:19 rudy1976s @steinkel thank you !
# May 24th 2021, 10:19 steinkel @rudy1976s you could define the transport this way from nginx `fastcgi_param EMAIL_TRANSPORT_DEFAULT_URL smtp://user:password@smtpserver.com:25?tls=nullandclient=nullandtimeout=30;`
# May 24th 2021, 09:47 kevin.pfeifer @rudy1976s i am not aware, that you can define a complete e-mail transport via .env variables. But you can of course just extend your .env variable by all the needed parameters and read them in your app_local.php or wherever you define your transport configs
# May 24th 2021, 09:44 michal_kotus Thanks!!
# May 24th 2021, 09:32 kevin.pfeifer ```use Cake\Mailer\MailerAwareTrait;``` is just 1 part you need to add to your controller. You also need to add ```use MailerAwareTrait;``` bellow the class definition, so in total like ```use Cake\Mailer\MailerAwareTrait; class UsersController extends AppController { use MailerAwareTrait;```