# |
Feb 11th 2020, 11:47 |
lpj145 |
skeleton help by expressive by the way. |
# |
Feb 11th 2020, 11:47 |
lpj145 |
crud plugin is good for make api, but he have a lot magic methods. |
# |
Feb 11th 2020, 11:46 |
lpj145 |
@damiano feel free to suggest. |
# |
Feb 11th 2020, 11:20 |
challgren |
Ok will do, I bet they just need someone to give them info before publish time |
# |
Feb 11th 2020, 11:19 |
megan |
@challgren will look into it and reach out to them! Thanks! Please pass any other suggestions on to me :) |
# |
Feb 11th 2020, 11:19 |
challgren |
https://blog.jetbrains.com/phpstorm/2020/02/php-annotated-february-2020/ |
# |
Feb 11th 2020, 11:17 |
damiano |
@lpj145 i am seeing the project thanks |
# |
Feb 11th 2020, 11:17 |
challgren |
Ok @megan I remember what it was about PHPStorm. The newsletter PHP Annotated they put out every month include nothing cake related at all. Seems like a missed opportunity |
# |
Feb 11th 2020, 11:16 |
damiano |
the thing is that maybe a plugin/theme has its own logic so using the default controllers maybe is not the correct way |
# |
Feb 11th 2020, 11:13 |
damiano |
another question, i usually create two plugins Frontend and Backend that have the themes...the question is should i create the routes and controlelr in the plugin or just the templates there and the controller in the default src/ ? |
# |
Feb 11th 2020, 10:57 |
damiano |
ok, thank you @admad ! |
# |
Feb 11th 2020, 10:52 |
admad |
And btw environment variables as per their names belong in your environment, not files. The .env files should only be used locally to emulate env vars |
# |
Feb 11th 2020, 10:50 |
admad |
If you want a more standardized json response format then can use the crud-json-api plugin too |
# |
Feb 11th 2020, 10:49 |
admad |
@damiano the crud plugin and it's apilistener can make developing APIs a breeze |
# |
Feb 11th 2020, 10:35 |
lpj145 |
100% json and jwt yet. |
# |
Feb 11th 2020, 10:35 |
lpj145 |
this is my cake api project... |
# |
Feb 11th 2020, 10:35 |
lpj145 |
@damiano https://github.com/lpj145/cakephp_template |
# |
Feb 11th 2020, 10:25 |
damiano |
however ok |
# |
Feb 11th 2020, 10:25 |
damiano |
i read nginx is better than apache |
# |
Feb 11th 2020, 10:23 |
challgren |
Probably but I dont use nginx |
# |
Feb 11th 2020, 10:18 |
damiano |
i mean, let nginx created them ? |
# |
Feb 11th 2020, 10:18 |
damiano |
ok but, is there a way to add them inside nginx ? |
# |
Feb 11th 2020, 10:18 |
damiano |
ok so basically i create that variables manually |
# |
Feb 11th 2020, 10:18 |
challgren |
I think its also slower to parse that file too |
# |
Feb 11th 2020, 10:17 |
damiano |
config/ folder is hidden |
# |
Feb 11th 2020, 10:17 |
damiano |
but that's not the problem of cake |
# |
Feb 11th 2020, 10:17 |
damiano |
because i read some stupid people put .env files accessible via web :) |
# |
Feb 11th 2020, 10:17 |
damiano |
from where? the config folder is not accessible via web, do you mean who has the access to the server? |
# |
Feb 11th 2020, 10:16 |
challgren |
The .env file could be read by anyone |
# |
Feb 11th 2020, 10:13 |
damiano |
should i create the env vars manually? |
# |
Feb 11th 2020, 10:13 |
damiano |
why? the file is not accessible via web server... |
# |
Feb 11th 2020, 10:13 |
damiano |
.env file |
# |
Feb 11th 2020, 10:13 |
damiano |
guys: # Having this file in production is considered a **SECURITY RISK** and also decreases # the boostrap performance of your application. |
# |
Feb 11th 2020, 09:58 |
neon1024 |
Not used apigen, so unsure :) |
# |
Feb 11th 2020, 09:58 |
challgren |
Yeah, figured it be fixed by now |
# |
Feb 11th 2020, 09:57 |
neon1024 |
Ah yes, there isn’t as I believe there is an apigen issue |
# |
Feb 11th 2020, 09:57 |
neon1024 |
ORLY? |
# |
Feb 11th 2020, 09:57 |
challgren |
No API for 4.x yet eh? |
# |
Feb 11th 2020, 09:57 |
challgren |
I had to google it :P |
# |
Feb 11th 2020, 09:57 |
neon1024 |
Well done @challgren :clap: |
# |
Feb 11th 2020, 09:55 |
damiano |
cakephp4 is giving me very good satisfactions, you all did very good job |