# |
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. |
# |
Jan 8th 2020, 17:32 |
slackebot |
<jotpe> |
# |
Jan 8th 2020, 17:31 |
jotpe |
Anyone has a clue, why a complete exact route is not found when creating a FormHelper::create() but is working with a PostLink? |
# |
Jan 8th 2020, 17:30 |
wizardfix |
Think I found the solution @ckjksl - My system was using the system-wide PHP install at `/usr/bin/php`. Once I added `/opt/lampp/bin` to my `PATH`, the errors doisap |
# |
Jan 8th 2020, 16:41 |
ckjksl |
Sorry I don't have any exact solutions for you. I think if it's working through your webserver and not in your command line, it probably has to do with your command line environment, and i don't know enough about that to offer assistance. |
# |
Jan 8th 2020, 16:37 |
wizardfix |
I will read that config section too, thanks for your help @ckjksl, I will investigate further and see if I can solve it. :) |
# |
Jan 8th 2020, 16:34 |
wizardfix |
Maybe I'll try a fresh install... |
# |
Jan 8th 2020, 16:33 |
slackebot |
Installing phpunit/php-timer (1.0.9): Downloading (100%) - Installing phpunit/php-file-iterator (1.4.5): Downloading (100%) - Installing theseer/tokenizer (1.1.3): Downloading (100%) - Installing sebastian/code-unit-reverse-lookup (1.0.1): Downloading (100%) - Installing phpunit/php-token-stream (2.0.2): Downloading (100%) - Installing phpunit/php-code-coverage (5.3.2): Downloading (100%) |