# |
Jun 26th 2018, 20:32 |
chrispecoraro |
```<?php echo json_encode(compact('employees')); ``` |
# |
Jun 26th 2018, 20:32 |
chrispecoraro |
Also, it seems like overkill just to create a view for entity in the RESTful API just to do: |
# |
Jun 26th 2018, 20:31 |
chrispecoraro |
and/or use a URL prefix with API URLs? |
# |
Jun 26th 2018, 20:30 |
chrispecoraro |
..in conjunction with ```App::build([ 'Controller' => [ ROOT . '/app/Controller/', ROOT . '/app/Controller/api/v1/' ] ]); ``` |
# |
Jun 26th 2018, 20:30 |
chrispecoraro |
```Router::mapResources('employees'); Router::parseExtensions(); ``` |
# |
Jun 26th 2018, 20:30 |
chrispecoraro |
So as far as you know, I can't use: |
# |
Jun 26th 2018, 20:29 |
hmic |
aditionally read the migration guide of course to make sure you catch up on all the ugly details :O |
# |
Jun 26th 2018, 20:29 |
mdunham |
is there an updateAll in cake3.6.6? |
# |
Jun 26th 2018, 20:29 |
mdunham |
hey |
# |
Jun 26th 2018, 20:29 |
chrispecoraro |
oh. |
# |
Jun 26th 2018, 20:28 |
hmic |
if using composer, edit composer.json to allow 2.10 being pulled and composer update, thats it |
# |
Jun 26th 2018, 20:28 |
hmic |
suppose you are not using composer on an old 2.x project, so just replace the cake folder :p |
# |
Jun 26th 2018, 20:28 |
chrispecoraro |
Maybe there is some complexity or something that isn't _standard_. |
# |
Jun 26th 2018, 20:28 |
chrispecoraro |
Oh, I didn't know that. |
# |
Jun 26th 2018, 20:27 |
hmic |
about 2 minutes... |
# |
Jun 26th 2018, 20:27 |
chrispecoraro |
Unfortunately that's out of my hands.. How long is the usual procedure? |
# |
Jun 26th 2018, 20:27 |
chrispecoraro |
Maybe that's the issue, then. |
# |
Jun 26th 2018, 20:27 |
hmic |
additionally, upgrade to latest anyways! theres no reason to be stuck on 2.8 today |
# |
Jun 26th 2018, 20:26 |
hmic |
chrispecoraro: never seen subdirs in cake2 working like that |
# |
Jun 26th 2018, 20:26 |
chrispecoraro |
And when I acess "employeeApi" I get ``Controller class EmployeeController could not be found.``` |
# |
Jun 26th 2018, 20:25 |
chrispecoraro |
And then I've added: ```Router::mapResources('employeeApi'); ``` |
# |
Jun 26th 2018, 20:24 |
chrispecoraro |
(Cake 2.8), I have added ```App::build([ 'Controller' => [ ROOT . '/app/Controller/', ROOT . '/app/Controller/api/v1/' ] ]); ``` |
# |
Jun 26th 2018, 20:24 |
chrispecoraro |
Hello all! I'm trying to setup my controllers in sub folders, like as follows: `Controller/api/v1/EmployeeController.php` |
# |
Jun 26th 2018, 19:48 |
mdunham |
not so much on issue repairs though haha |
# |
Jun 26th 2018, 19:48 |
mdunham |
i’ve been dedicated to cake since 2011 |
# |
Jun 26th 2018, 19:48 |
mdunham |
any die hard cake fans still around |
# |
Jun 26th 2018, 19:47 |
mdunham |
where [‘OR’ => […., …..]) |
# |
Jun 26th 2018, 19:47 |
mdunham |
realized i was over grouping |
# |
Jun 26th 2018, 19:47 |
mdunham |
where([‘OR’ => [….], ‘OR’ => [….]) |
# |
Jun 26th 2018, 19:47 |
mdunham |
nah cakephp query object related |
# |
Jun 26th 2018, 19:47 |
HumanG33k |
sql related ? |
# |
Jun 26th 2018, 19:46 |
mdunham |
was trying to work out some complicated AND OR where statement |
# |
Jun 26th 2018, 19:46 |
mdunham |
cool howdy I had a question but answered it myself before i asked |
# |
Jun 26th 2018, 19:46 |
HumanG33k |
yep mdunham |
# |
Jun 26th 2018, 19:35 |
mdunham |
hey anyone active? |
# |
Jun 26th 2018, 15:53 |
nedvajz |
well true .. damned .. thank you and sorry for your time ;) |
# |
Jun 26th 2018, 15:52 |
josbeir |
its entirly up to your .htaccess / webserver configuration |
# |
Jun 26th 2018, 15:52 |
josbeir |
has nothing to do with cake tho |
# |
Jun 26th 2018, 15:51 |
josbeir |
it should be possible |
# |
Jun 26th 2018, 15:48 |
nedvajz |
Is it possible to run some project in cakephp 3 webroot like it was in cakephp 2? Not sure if I have wrong settings or if there is something required - google is not pretty helpful :-( |
# |
Jun 26th 2018, 15:47 |
nedvajz |
Hi there |