Log message #4221800

# At Username Text
# Jan 9th 2020, 06:16 ciby48719 i have some doubts regarding cakephp project set up in localhost wamp server
# Jan 9th 2020, 06:16 ciby48719 Hello Team
# Jan 9th 2020, 05:53 conehead @luizcmarin yes, dates and times are always stored in default structure as they are not strings but Date or DateTime fields. Do not think of a page that uses only one language but supports multiple languages.
# Jan 9th 2020, 00:15 damiano cakephp 4 is awesome
# Jan 9th 2020, 00:09 dereuromark ok
# Jan 9th 2020, 00:09 damiano it is a presentation...so it can be accessible, not a big problem
# Jan 9th 2020, 00:08 dereuromark but then why is this in webroot in the first place? it should not be accessible through URL
# Jan 9th 2020, 00:08 dereuromark whats the big deal
# Jan 9th 2020, 00:08 dereuromark then just use Plugin::path() . 'webroot/foo/bar manually.
# Jan 9th 2020, 00:07 damiano exactly i need the absolute path
# Jan 9th 2020, 00:07 dereuromark so it is for emails to be inline attached? not a URL?
# Jan 9th 2020, 00:06 damiano i need to set that file in setAttachments() of the mailer
# Jan 9th 2020, 00:05 damiano is that possibile without the html helper?
# Jan 9th 2020, 00:05 damiano @dereuromark yeah but i am asking how can i get the absolute path of a file inside the webroot of the plugin
# Jan 9th 2020, 00:04 dereuromark Usually just `/plugin/img/` for img/ etc
# Jan 9th 2020, 00:02 damiano i cannot use Html helper
# Jan 9th 2020, 00:02 damiano @dereuromark i am inside a controller not inside a view
# Jan 8th 2020, 23:58 dereuromark its documented in book, given you have the AssetMiddleware in place etc
# Jan 8th 2020, 23:58 damiano is there a method ?
# Jan 8th 2020, 23:57 damiano guys how can i get the path to the webroot folder inside a plugin ?
# Jan 8th 2020, 22:58 luizcmarin so I would like to understand correctly the use of this feature. In my country, Brazil, the date is dd / mm / yyyy. But the mysql database keeps its default aaaa-mm-dd. I imagine that: Configuring on bootstrap, my system will read the table and convert forever to display in my format, but at the time of writing it writes to mysql default. Right?
# Jan 8th 2020, 22:54 luizcmarin I understand that I can change the date and time settings in bootstrap.php by following this information. But I get error as a result
# Jan 8th 2020, 22:52 luizcmarin can someone give me a little help with https://book.cakephp.org/4/en/core-libraries/internationalization-and-localization.html#parsing-localized-datetime-data
# Jan 8th 2020, 21:39 ricksaccous doesn't it get added as a hidden field?
# Jan 8th 2020, 21:39 ricksaccous so I don't see why you ahve to have the csrf on the submit button
# Jan 8th 2020, 21:38 ricksaccous so when you submit the form just knows
# Jan 8th 2020, 21:38 ricksaccous shouldn't it
# Jan 8th 2020, 21:38 ricksaccous csrf should be added to the form already
# Jan 8th 2020, 21:38 ricksaccous also
# Jan 8th 2020, 21:38 ricksaccous out of curiosity why not just use postlink
# Jan 8th 2020, 21:22 slackebot <jotpe>
# Jan 8th 2020, 21:21 jotpe postLink() generates some markup like this with the csrf token in the onClick
# Jan 8th 2020, 21:17 ricksaccous it just shows a pop up before you submit
# Jan 8th 2020, 21:17 ricksaccous confirm doesn't have anything to do with CSRF
# Jan 8th 2020, 21:16 ricksaccous i don't know what you're trying to do anymore
# Jan 8th 2020, 21:16 jotpe Is the Normal Paginator Helper able to handle variables in the url? BootstrapUIs doesn't seem to work with it.
# Jan 8th 2020, 21:10 jotpe There's no explicit option, but when I just add it with the code from the postlink it seems to lack the csrf stuff. Is there a way I can get the token?
# Jan 8th 2020, 19:53 ricksaccous the option i mean
# Jan 8th 2020, 19:53 ricksaccous @jotpe have you just tried using confirm on a normal submit button?
# Jan 8th 2020, 18:02 jotpe Is there something like the `'confirm'` option (`postLink()`) for normal submits/buttons?
# Jan 8th 2020, 17:35 jotpe Ah gosh, forgot the 'url' as FormHelpers create option.