# |
Apr 1st 2019, 21:30 |
challgren |
Test tables are done via fixtures |
# |
Apr 1st 2019, 21:04 |
numeo |
hello. i am struggling to find a way to set the migration_table (phinxlog) per environment. i saw configuration examples where test_ was set as the prefix for a given environment, and presumably you need a different phinxlog for the test tables |
# |
Apr 1st 2019, 20:31 |
flashios09 |
hi @markstory, in cake4 we will use `.php` instead of `.ctp` for template files ? |
# |
Apr 1st 2019, 20:30 |
flashios09 |
hi |
# |
Apr 1st 2019, 20:30 |
slackebot2 |
<abdualelah.mdy> |
# |
Apr 1st 2019, 20:28 |
slackebot2 |
<abdualelah.mdy> |
# |
Apr 1st 2019, 20:26 |
abdualelah.mdy |
I don't want to use php.ini |
# |
Apr 1st 2019, 20:25 |
abdualelah.mdy |
how to fix this :thinking_face: |
# |
Apr 1st 2019, 20:25 |
abdualelah.mdy |
I did set the transport using transport('default') |
# |
Apr 1st 2019, 20:24 |
abdualelah.mdy |
'Could not send email: mail(): Failed to connect to mailserver at andquot;localhostandquot; port 25, verify your andquot;SMTPandquot; and andquot;smtp_portandquot; setting in php.ini or use ini_set()' |
# |
Apr 1st 2019, 20:23 |
abdualelah.mdy |
I have a problem with sending email . it uses smtp informtion from php.ini |
# |
Apr 1st 2019, 20:22 |
abdualelah.mdy |
im using cakedc/users |
# |
Apr 1st 2019, 20:22 |
abdualelah.mdy |
hello |
# |
Apr 1st 2019, 19:06 |
etipaced |
Is there a way to configure a plugin to always use a define table prefix (for baking migrations, etc.)? |
# |
Apr 1st 2019, 18:50 |
etipaced |
Also, if you’re migrating from a legacy app, consider storing the legacy id in a separate column, and using fresh ids as primary in the new app. Something like `legacy_id`, etc. Unless they really do need to be identical. |
# |
Apr 1st 2019, 18:49 |
etipaced |
Interesting, I’ve not seen that before. |
# |
Apr 1st 2019, 18:41 |
ricksaccous |
since i probably don't need hydration |
# |
Apr 1st 2019, 18:41 |
ricksaccous |
but funnily enough the thing you linked could be useful |
# |
Apr 1st 2019, 18:41 |
ricksaccous |
no i think i want this https://book.cakephp.org/3.0/en/orm/query-builder.html#inserting-data |
# |
Apr 1st 2019, 18:40 |
etipaced |
@ricksaccous Something like this? https://book.cakephp.org/3.0/en/orm/query-builder.html#getting-arrays-instead-of-entities |
# |
Apr 1st 2019, 18:35 |
ricksaccous |
ie i'm importing data from another db and i want to preserve the ids |
# |
Apr 1st 2019, 18:35 |
ricksaccous |
what's the best way to insert a bunch of rows in cake without entity hydration? |
# |
Apr 1st 2019, 18:34 |
ricksaccous |
remove the register/applymiddleware lines |
# |
Apr 1st 2019, 18:31 |
snake-venom |
what you suggest ? |
# |
Apr 1st 2019, 18:30 |
snake-venom |
actual its a Zapier end point so zapier will not discuss CSRF |
# |
Apr 1st 2019, 18:29 |
snake-venom |
yes admad,, |
# |
Apr 1st 2019, 18:29 |
admad |
You can't be inflicted with csrf if not using cookies/session |
# |
Apr 1st 2019, 18:29 |
admad |
If you are developing only a stateless api then simply get rid of csrf middleware |
# |
Apr 1st 2019, 18:26 |
ricksaccous |
because it's being applied everywhere |
# |
Apr 1st 2019, 18:26 |
ricksaccous |
i think you shouldn't apply middleware in that /scope |
# |
Apr 1st 2019, 18:22 |
snake-venom |
yes i am only working at api end so its showing on api |
# |
Apr 1st 2019, 18:22 |
ricksaccous |
or is it finding the route? |
# |
Apr 1st 2019, 18:22 |
ricksaccous |
csrf error |
# |
Apr 1st 2019, 18:22 |
ricksaccous |
i mean |
# |
Apr 1st 2019, 18:22 |
ricksaccous |
is your only error there an api error? |
# |
Apr 1st 2019, 18:21 |
ricksaccous |
your resources doesn't make sense |
# |
Apr 1st 2019, 18:19 |
snake-venom |
any suggestion ? |
# |
Apr 1st 2019, 18:09 |
snake-venom |
https://codeshare.io/5Z0W9V <challgren> can you check if its routes.php ok ? means i did not make any wrong things in this.. |
# |
Apr 1st 2019, 18:07 |
itmpls |
is there a way to manually apply hydration to a manual join call? |
# |
Apr 1st 2019, 18:03 |
challgren |
in my routes.php i checked CSRF setting is in Router::scope('/') but not in Router::prefix('api') and CSRF error coming on this route "/api/" |
# |
Apr 1st 2019, 18:03 |
challgren |
https://github.com/cakephp/app/blob/master/config/routes.php#L50 |