# |
Sep 12th 2019, 09:30 |
ndm |
And use a persistent SMTP connection. |
# |
Sep 12th 2019, 09:29 |
admad |
adjust your batch size depending on smtp server limits, but yeah using a dedicated service might be better as it would handle the throttling |
# |
Sep 12th 2019, 09:22 |
davorminchorov |
It looks like I should use a relay email |
# |
Sep 12th 2019, 09:17 |
davorminchorov |
I am not sure if the SMTP timeout limitations is specific to gmail smtp or it's a general spam prevention mechanism for all email sending providers, so I don't want to make it look like it's a spam system |
# |
Sep 12th 2019, 09:15 |
davorminchorov |
The use case is the following, I have an excel file with data and I want to mass upload a bunch of users (max 500), and after the creation, I want to send email to that user to let him know that his account was created |
# |
Sep 12th 2019, 09:13 |
davorminchorov |
yeah I am using a queue but it seems like after 100 emails sent as a loop, there's an SMTP timeout |
# |
Sep 12th 2019, 09:12 |
admad |
a queue and cronjob? |
# |
Sep 12th 2019, 09:10 |
davorminchorov |
Hi, how do you send a ton of emails without SMTP timeout? Do you delay them? Send one email with multiple addresses? Any ideas? |
# |
Sep 12th 2019, 09:01 |
jotpe |
@narendravaghela ok, thank you :slightly_smiling_face: |
# |
Sep 12th 2019, 08:59 |
javier.villanueva |
ok, i solved with hash::extract |
# |
Sep 12th 2019, 08:41 |
javier.villanueva |
In a belongsToMany association (f.ex. articles/tags) can I get the article and their tags (but only a list of ids)? |
# |
Sep 12th 2019, 08:29 |
narendravaghela |
Try not to expose internal IDs if it is a public content. Slug is sufficient for find. |
# |
Sep 12th 2019, 08:20 |
jotpe |
Using the ID and Slug for the find in the controller |
# |
Sep 12th 2019, 08:20 |
jotpe |
What's best practice for a blog/news system with urls and slugs? The Quickstart finds articles by Slugs: https://book.cakephp.org/3.0/en/quickstart.html#create-the-view-action, which is good from a seo perspective. Is that sufficient or is it better to add a id to the url? F.e.: |
# |
Sep 12th 2019, 07:32 |
conehead |
Mornin |
# |
Sep 12th 2019, 07:32 |
jotpe |
Morning |
# |
Sep 12th 2019, 07:07 |
spriz |
@admad I guess it's returning https://www.tomasvotruba.cz/blog/2017/09/04/how-apigen-survived-its-own-death/ ;P |
# |
Sep 12th 2019, 05:50 |
kgb.acct.personal |
Thanks. I'll take a look at it :+1: |
# |
Sep 12th 2019, 05:44 |
admad |
though the apigen project is now defunct and doesn't support newer php versions |
# |
Sep 12th 2019, 05:44 |
admad |
you sure can |
# |
Sep 12th 2019, 05:41 |
kgb.acct.personal |
Can I use it to generate API docs for my project? |
# |
Sep 12th 2019, 05:36 |
admad |
@kgb.acct.personal https://github.com/cakephp/cakephp-api-docs |
# |
Sep 12th 2019, 05:30 |
kgb.acct.personal |
What tools are used to generate the CakePHP API docs? |
# |
Sep 12th 2019, 04:53 |
admad |
Or you can just set defaults using the entity class' constructor |
# |
Sep 12th 2019, 04:52 |
admad |
@kailas put the defaults in db table |
# |
Sep 12th 2019, 04:32 |
kailas |
(like, in the entity or table behavior.. not just passing an array with the default values) |
# |
Sep 12th 2019, 04:32 |
kailas |
is there a standard way to set the default value of fields when created with newEntity()? |
# |
Sep 12th 2019, 02:11 |
ouroboros |
Odd question but has anybody here done a migration from adobe catalyst to cakephp? |
# |
Sep 12th 2019, 00:55 |
MoanaSilva |
The query builder don't detect the ( and the ) in the column name |
# |
Sep 12th 2019, 00:44 |
MoanaSilva |
Hello... I'm having troubles with a column in a table, and this column is called "Ativo (Produto)"... even with the quoteIdentifiers = true this field is being quoted as `Varietyandprocessing`.`Ativo` (Produto) AS `Varietyandprocessing__Ativo (Produto)` |
# |
Sep 12th 2019, 00:25 |
dereuromark |
Phantom: I recommend using a better naming convention ( https://sandbox.dereuromark.de/pages/best-practices#config ) |
# |
Sep 11th 2019, 20:44 |
phantomwatson |
Also, check out the CakePHP docs regarding decoding a request in the form of a CSV file: https://book.cakephp.org/3.0/en/controllers/components/request-handling.html#automatically-decoding-request-data |
# |
Sep 11th 2019, 20:42 |
phantomwatson |
The library that I use for reading CSV files is PhpSpreadsheet (https://github.com/PHPOffice/PhpSpreadsheet). |
# |
Sep 11th 2019, 20:41 |
phantomwatson |
Question: Why is it recommended that `app.php` not be committed while it's also recommended that sensitive data be removed and put in environment variables? I don't get why one would still not commit it. |
# |
Sep 11th 2019, 20:41 |
Kwid2019 |
Yes, an action to upload CSV into a table in my own application... |
# |
Sep 11th 2019, 20:39 |
phantomwatson |
You mean you need your own application to handle the importing of a CSV file? |
# |
Sep 11th 2019, 20:38 |
Kwid2019 |
but I need a screen in my application for the user |
# |
Sep 11th 2019, 20:37 |
phantomwatson |
Try importing it with phpMyAdmin. |
# |
Sep 11th 2019, 20:16 |
Kwid201982 |
Hey guys... I have a 200 thousand lines CSV file.. what's the best way to upload it to a table??? There's any plugin? :think: |
# |
Sep 11th 2019, 18:24 |
itmpls |
n/m |
# |
Sep 11th 2019, 18:20 |
itmpls |
obviously chaining them doesn't work because they mutate |