# |
Jan 9th 2020, 09:26 |
damiano |
@neon1024 i know i can pass the value there...but i am asking what is the best way to organize them after deploy |
# |
Jan 9th 2020, 09:25 |
neon1024 |
Check the second param of the `env()` function |
# |
Jan 9th 2020, 09:25 |
damiano |
i only see this |
# |
Jan 9th 2020, 09:25 |
damiano |
'Security' => [ 'salt' => env('SECURITY_SALT'), ], |
# |
Jan 9th 2020, 09:25 |
damiano |
@conehead not in cakephp 4 |
# |
Jan 9th 2020, 09:18 |
conehead |
@damiano app.php does have a Security.salt. It tries to read from env but if it does not exist, it will take the default value |
# |
Jan 9th 2020, 09:17 |
ciby48719 |
simple php file working in that folder. But adding the cakephp project in that folder showing as ' Forbidden Issue'. That is i am asking any permission issue for the project files |
# |
Jan 9th 2020, 09:15 |
damiano |
hello, i have seen that app.php doe snot have the Security.salt but it reads from env() what is the best wait to create and organize envirorment variables? |
# |
Jan 9th 2020, 09:05 |
neon1024 |
Morning all :wave: |
# |
Jan 9th 2020, 09:04 |
conehead |
ciby but it is working with a simple php file? you checked that first? |
# |
Jan 9th 2020, 07:19 |
ciby48719 |
will check the permission for the folders |
# |
Jan 9th 2020, 07:19 |
ciby48719 |
but its not reflected |
# |
Jan 9th 2020, 07:19 |
ciby48719 |
changed the' Require local' option |
# |
Jan 9th 2020, 07:14 |
jotpe |
ciby48719 I'm not on Windows but I guess your folder permissions are not set correct right. Try to search for what is the http user of the wamp stack and change your cakephp app to that user. I remember there was also a option `Require local` to change in the http config but I don't remember exactly. |
# |
Jan 9th 2020, 07:07 |
jotpe |
Morning |
# |
Jan 9th 2020, 06:19 |
ciby48719 |
how can we resolve this issue. I checked the httpd-vhosts.conf file and done some changes show in online links .But its not working |
# |
Jan 9th 2020, 06:18 |
ciby48719 |
after taking the localhost url in browser showing as 'Forbidden you don't have permission to access this resource' |
# |
Jan 9th 2020, 06:17 |
ciby48719 |
set up the project in localhost, Changed the root and webroot htaccess file |
# |
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 |