# |
Jul 3rd 2017, 18:29 |
devito |
getting an odd error when i try to make a new entity and save it. its telling me created cannot be null.... anyone ever encounter this? I baked the migration with created modified as the last 2 cols |
# |
Jul 3rd 2017, 17:27 |
glanceded |
are there any implications for now using ->cors() ? |
# |
Jul 3rd 2017, 17:27 |
glanceded |
also works with $this->response->withHeader('Access-Control-Allow-Origin', 'http://localhost:81>');, but it doesn't work with -cors() |
# |
Jul 3rd 2017, 17:25 |
glanceded |
header("Access-Control-Allow-Origin: http://localhost:81"); |
# |
Jul 3rd 2017, 17:25 |
glanceded |
I just tried with php and it works... |
# |
Jul 3rd 2017, 17:23 |
inoas |
make sure it runs... then transform to response setup |
# |
Jul 3rd 2017, 17:22 |
inoas |
use php's header() first |
# |
Jul 3rd 2017, 17:22 |
inoas |
I'd try to decouple the problem |
# |
Jul 3rd 2017, 17:19 |
glanceded |
instead of localhost I tried * but doesn't work. I also tried to assign the resulted value to $this->response. Also, it didn't work |
# |
Jul 3rd 2017, 17:18 |
glanceded |
I use ->cors method, like this $this->response ->cors($this->request) ->allowOrigin(['http://localhost:81>']) ->allowMethods(['GET', 'POST']) //->allowHeaders(['X-CSRF-Token']) //->allowCredentials() //->exposeHeaders(['Link']) ->maxAge(300) -build(); |
# |
Jul 3rd 2017, 17:18 |
glanceded |
I try do add cors, but it doesn't work |
# |
Jul 3rd 2017, 17:18 |
glanceded |
I have a problem with my cake app I'm trying to make. |
# |
Jul 3rd 2017, 17:17 |
glanceded |
hello guys |
# |
Jul 3rd 2017, 16:37 |
admad |
no need to set locale individually for all data time classes. Just set `I18n::locale('en_GB')` |
# |
Jul 3rd 2017, 16:18 |
inoas |
ndm what do you set Time::setDefaultLocale() etc to? |
# |
Jul 3rd 2017, 16:11 |
admad |
@ndm yup it is a bug |
# |
Jul 3rd 2017, 15:56 |
ndm |
@ionas No one said it would be easy :slightly_smiling_face: My configurations looked similar, but by now I'm using `i18nFormat()` wherever possible, so that most of the time all I have to do is set the locale. |
# |
Jul 3rd 2017, 15:42 |
inoas |
50 years from now I cannot imagine that. |
# |
Jul 3rd 2017, 15:42 |
inoas |
right now here in germany small and medium sized "non-direct-customer" companies still refuse to hire people that only speak English |
# |
Jul 3rd 2017, 15:41 |
jeremyharris |
:) |
# |
Jul 3rd 2017, 15:41 |
inoas |
...o0O(and after that they lived happily ever after) |
# |
Jul 3rd 2017, 15:41 |
inoas |
lets make the trade: we use the broken (American :p) English and you use the broken (Metric) date/dimension thingies :p? |
# |
Jul 3rd 2017, 15:40 |
inoas |
jeremy ;-P |
# |
Jul 3rd 2017, 15:40 |
inoas |
ndm care to share your configuration? thats what I do but it feels strange https://gist.github.com/inoas/c8010068661352e0d51cdc985e2f869a |
# |
Jul 3rd 2017, 15:40 |
jeremyharris |
ouch. as an american, I take offense. our shitty datetime format is the corner stone of our shitty democracy! |
# |
Jul 3rd 2017, 15:38 |
ndm |
Well, that's just a matter of configuration, my datetimes are using non-retarded formatting ;) But yeah, as far as debug kit concerned, it's pretty much a non-issue. |
# |
Jul 3rd 2017, 15:36 |
inoas |
neon1024 :+1: |
# |
Jul 3rd 2017, 15:36 |
inoas |
ndm I am saying its a non-issue. If we want to be inclusive we have to fix default datetimes to be ISO instead of english-american :p |
# |
Jul 3rd 2017, 15:36 |
neon1024 |
Perhaps an RFC ticket to remove the left overs? |
# |
Jul 3rd 2017, 15:35 |
ndm |
@ionas Ok, it read as if you thought I'd refer to the source... I'd tend to agree that it seems that no one really seems to want it translated. |
# |
Jul 3rd 2017, 15:35 |
neon1024 |
I guess just an omission @ndm :slightly_smiling_face: |
# |
Jul 3rd 2017, 15:35 |
neon1024 |
:coffee: |
# |
Jul 3rd 2017, 15:34 |
inoas |
anyway I will stfu |
# |
Jul 3rd 2017, 15:34 |
inoas |
and we cannot get the doc blocks translated reasonably |
# |
Jul 3rd 2017, 15:34 |
inoas |
what I am saying is that doc blocks matter the most, then book documentation, then at some point debug kit locales ;-P |
# |
Jul 3rd 2017, 15:34 |
neon1024 |
Translations !== Source code |
# |
Jul 3rd 2017, 15:34 |
neon1024 |
Sigh, you’re stuck on source code today inoas |
# |
Jul 3rd 2017, 15:33 |
inoas |
neon1024 I would welcome to have uuids in source code comments and some kind of uber-tool that translates all doc blocks on the fly :p |
# |
Jul 3rd 2017, 15:33 |
neon1024 |
If they help make things more accessible for non-english speakers |
# |
Jul 3rd 2017, 15:33 |
neon1024 |
But for translations, any contributed translations are a positive thing in my book :slightly_smiling_face: |
# |
Jul 3rd 2017, 15:33 |
inoas |
ndm I know. I am just saying - as a "german motherlanguage dude" - that I could live without those and because no one complained so far maybe we all can and reduce maintainance/costs |