# |
Jun 22nd 2018, 11:05 |
neon1024 |
`Router::prefix(‘api’, function (RouteBuilder $routes) { $routes->prefix(‘v3’, function (RouteBuilder $routes) {` |
# |
Jun 22nd 2018, 11:05 |
neon1024 |
I went with nested prefixed in my application |
# |
Jun 22nd 2018, 11:05 |
neon1024 |
Or are you migrating the old one over as well? |
# |
Jun 22nd 2018, 11:05 |
neon1024 |
If you’re making a new app why would you need a prefix? |
# |
Jun 22nd 2018, 10:58 |
saeideng |
install cake into `/api/v3/` :D |
# |
Jun 22nd 2018, 10:49 |
denis |
Hello! Please help me. i have cake2app in example.com/ a wont to make new api version use cake3app on example.com/api/v3/ i make nginx location to /api/v3/ how to set api/v3 as prefix in cake3app? |
# |
Jun 22nd 2018, 10:20 |
neon1024 |
https://editorconfig.org/ |
# |
Jun 22nd 2018, 10:20 |
neon1024 |
LMGTFY |
# |
Jun 22nd 2018, 10:16 |
Magiq |
what is it slightly_smiling_face ? |
# |
Jun 22nd 2018, 10:16 |
neon1024 |
This might be handy for those of us using PHP Storm, as Cake comes with an editorconfig :slightly_smiling_face: |
# |
Jun 22nd 2018, 10:15 |
neon1024 |
https://plugins.jetbrains.com/plugin/7294-editorconfig |
# |
Jun 22nd 2018, 10:10 |
saeideng |
no force to use `_id` but in this case maybe you should work a bit more |
# |
Jun 22nd 2018, 10:04 |
neon1024 |
`->control('user_id')` would look for `$users` |
# |
Jun 22nd 2018, 10:04 |
neon1024 |
Because the convention in the Form helper for form control data is that way |
# |
Jun 22nd 2018, 09:48 |
Magiq |
Why here https://github.com/FriendsOfCake/crud/blob/master/src/Listener/RelatedModelsListener.php#L94 uses association name, not propertyName ? |
# |
Jun 22nd 2018, 09:11 |
neon1024 |
:thumbsup: |
# |
Jun 22nd 2018, 09:10 |
birdy247 |
still got work to do before it feels completely right, but this was certainly a step in the right direction |
# |
Jun 22nd 2018, 09:10 |
birdy247 |
@neon1024 :+1: feels much nicer now |
# |
Jun 22nd 2018, 09:04 |
neon1024 |
https://book.cakephp.org/2.0/en/installation.html#permissions |
# |
Jun 22nd 2018, 09:00 |
santiago17 |
is that good? |
# |
Jun 22nd 2018, 09:00 |
santiago17 |
I got the permissions on user:user to app/tmp |
# |
Jun 22nd 2018, 08:58 |
neon1024 |
I’d just do what it tells you |
# |
Jun 22nd 2018, 08:49 |
santiago17 |
I am having this error now, if somebody could say something what is missing there? https://thepasteb.in/p/Elh1z2A7Dl0Cm |
# |
Jun 22nd 2018, 08:47 |
santiago17 |
thank you anyway |
# |
Jun 22nd 2018, 08:47 |
santiago17 |
I have answered myself with that code log |
# |
Jun 22nd 2018, 08:40 |
santiago17 |
https://thepasteb.in/p/mwh1730495kc5 |
# |
Jun 22nd 2018, 08:39 |
neon1024 |
Might also want to update to 2.10 |
# |
Jun 22nd 2018, 08:38 |
neon1024 |
If you’re seeing a directory listing of files, then you have an issue with your webserver |
# |
Jun 22nd 2018, 08:38 |
neon1024 |
https://book.cakephp.org/2.0/en/installation.html |
# |
Jun 22nd 2018, 08:38 |
neon1024 |
Did you follow the installation instructions? |
# |
Jun 22nd 2018, 08:36 |
santiago17 |
somebody coul help me out to set it up, please? |
# |
Jun 22nd 2018, 08:29 |
birdy247 |
and you are the king of complex -> simple |
# |
Jun 22nd 2018, 08:25 |
neon1024 |
I quite like abstract software design, it works for my brain |
# |
Jun 22nd 2018, 08:25 |
birdy247 |
you are cool :slightly_smiling_face: |
# |
Jun 22nd 2018, 08:24 |
birdy247 |
Ok, so this is cool |
# |
Jun 22nd 2018, 08:24 |
neon1024 |
Oh yeah, that would work too |
# |
Jun 22nd 2018, 08:23 |
birdy247 |
ModelAwareTrait? |
# |
Jun 22nd 2018, 08:23 |
neon1024 |
Or implement the LocatorAwareTrait and grab them from the TableLocator also I guess |
# |
Jun 22nd 2018, 08:22 |
neon1024 |
Well you will need the table class to create a new entity, so you could just pass the table class instances into the new Stationary class |
# |
Jun 22nd 2018, 08:20 |
birdy247 |
presumably I can use these in my new Stationary class? |
# |
Jun 22nd 2018, 08:20 |
birdy247 |
in my InvoiceItems table, I have methods like createPenInvoice, createRulerInvoice |