# |
Dec 29th 2018, 15:19 |
k4t |
poke @admad, @dereuromark, @neon1024 |
# |
Dec 29th 2018, 15:18 |
k4t |
Is it possible? |
# |
Dec 29th 2018, 15:17 |
slackebot |
should just throw 404 error. |
# |
Dec 29th 2018, 15:17 |
k4t |
I am using latest CakePHP with CRUD plugin. I want to create REST API and well... it is working pretty good. Now I can type following url in the browser: /api/v1/users.json and I will get nice JSON response. But I can also use: http://be.habiticon.localhost/api/v1/users and this will get me error about missing template. How I can easily make urls without .json work like it was with .json? Or the second solution - maybe urls without .json at the |
# |
Dec 29th 2018, 15:13 |
challgren |
Hi |
# |
Dec 29th 2018, 15:13 |
k4t |
Hi |
# |
Dec 29th 2018, 15:12 |
challgren |
And In the setUp() I am using $this->getMailer(‘Users’); |
# |
Dec 29th 2018, 15:10 |
challgren |
@dereuromark I did add a Plugin.php to CakeDC/users thinking it was the missing Plugin.php but that isn’t it |
# |
Dec 29th 2018, 15:04 |
dereuromark |
@neon1024 I added a sandbox example for usefulness of dtos. when using github api for example. |
# |
Dec 29th 2018, 15:04 |
challgren |
I am going to work on some of your plugins, your stuff has helped me out tremendously |
# |
Dec 29th 2018, 15:03 |
dereuromark |
I have some cake3 apps and plugins, if you wanna try some coverage of them? ;) |
# |
Dec 29th 2018, 15:02 |
challgren |
I learned from my Cake 2.10 app the hard way |
# |
Dec 29th 2018, 15:01 |
challgren |
That 100% is killing me slowly :P |
# |
Dec 29th 2018, 15:01 |
challgren |
Haha no its obsessiveness :P kind of why Ive been on, on random hours |
# |
Dec 29th 2018, 15:01 |
dereuromark |
someone clearly has too much time :slightly_smiling_face: |
# |
Dec 29th 2018, 14:44 |
slackebot |
<challgren> |
# |
Dec 29th 2018, 14:42 |
challgren |
This is my last thing to finish and then I’ll have my entire code base 100% tested. Right now its stuck at 98.06% cause of this issue |
# |
Dec 29th 2018, 14:32 |
challgren |
Kind of want to avoid having to mock the whole Mailer class and use the new TestSuite\EmailTrait |
# |
Dec 29th 2018, 14:28 |
challgren |
Would anyone have any idea why plugins aren’t being loaded during testing? https://cakesf.slack.com/files/UF0KR5CRY/FF3C63B2N/-.txt |
# |
Dec 29th 2018, 14:12 |
dereuromark |
you need to write a bit cleaner code there IMO. bail early on !is_array() makes it much nicer to read |
# |
Dec 29th 2018, 13:11 |
birdy247 |
@admad https://github.com/birdy247/cakephp-duplicatable/commit/2ec46289d83af88e987fb72c426e856e1d9dd7bc |
# |
Dec 29th 2018, 12:41 |
admad |
though i prefer `git pull upstream --rebase` instead of merging |
# |
Dec 29th 2018, 12:41 |
admad |
yes |
# |
Dec 29th 2018, 12:40 |
birdy247 |
add the upstreat to the original project and then merge upstream/master? |
# |
Dec 29th 2018, 12:39 |
birdy247 |
@admad I have already forked this project sometime ago, I am wondering the best way to update it |
# |
Dec 29th 2018, 12:39 |
admad |
@birdy247 yes most likely likely you'll need a new config |
# |
Dec 29th 2018, 12:38 |
asdfgh |
THANKS |
# |
Dec 29th 2018, 12:38 |
asdfgh |
:D |
# |
Dec 29th 2018, 12:38 |
dereuromark |
^^ please read the beginner docs |
# |
Dec 29th 2018, 12:37 |
admad |
cake bake all |
# |
Dec 29th 2018, 12:36 |
asdfgh |
so if there is a magic command that bake the entire app will be better :D |
# |
Dec 29th 2018, 12:36 |
asdfgh |
i have more than 50 tables :D |
# |
Dec 29th 2018, 12:36 |
asdfgh |
dereuromark yes but i need to bake every single table? |
# |
Dec 29th 2018, 12:27 |
madbbb |
\Cake\I18n\FrozenDate::setToStringFormat('dd.MM.yyyy'); saved me. |
# |
Dec 29th 2018, 12:25 |
dereuromark |
its that easy |
# |
Dec 29th 2018, 12:25 |
dereuromark |
just connect the cake app to the db |
# |
Dec 29th 2018, 12:19 |
asdfgh |
guys ihave a model in mysqlworkbench now, how can i transform it for cake to let bake everything ? |
# |
Dec 29th 2018, 12:15 |
birdy247 |
preserveCompositeKeyIndex? |
# |
Dec 29th 2018, 12:15 |
birdy247 |
make it a config? |
# |
Dec 29th 2018, 12:15 |
birdy247 |
@admad ok, but how would I solve the assumption of which keys to remove? |
# |
Dec 29th 2018, 11:56 |
admad |
i don't use composite keys hence dont care :slightly_smiling_face: You can make a PR if you have a proper fix without assumptions you mentioned |