# |
Jul 21st 2017, 10:00 |
neon1024 |
Last I heard the core cake team were trying to get a roadmap for it together |
# |
Jul 21st 2017, 10:00 |
neon1024 |
Worth speaking to HavokInspiration then, as they work on the cakephp/migrations plugin |
# |
Jul 21st 2017, 10:00 |
jay |
Yeah, i'm going through now and seeing if I can do anything :slightly_smiling_face: |
# |
Jul 21st 2017, 10:00 |
braeden |
:O |
# |
Jul 21st 2017, 10:00 |
jay |
Yeah, but it's been 15 days since an issue was responded to. Would be good to get some cake regulars watching it |
# |
Jul 21st 2017, 09:59 |
neon1024 |
It’s open source, feel free to get stuck in :) |
# |
Jul 21st 2017, 09:59 |
neon1024 |
I think there were a few commits recently |
# |
Jul 21st 2017, 09:57 |
jay |
Is anyone going to start maintaining Phinx? The issues aren't getting many responses |
# |
Jul 21st 2017, 09:49 |
rudy1976s |
it would be nice and useful to have such function integrated in core like Configure::append(origin,[]) isnt it ? |
# |
Jul 21st 2017, 09:46 |
rudy1976s |
I will look at api thank you |
# |
Jul 21st 2017, 09:46 |
neon1024 |
I think it uses the Hash class internally, so that might have some tools |
# |
Jul 21st 2017, 09:45 |
neon1024 |
I don’t know if Configure exposes and api for appending, you’d have to check that in the source code |
# |
Jul 21st 2017, 09:45 |
rudy1976s |
yes in fact it is |
# |
Jul 21st 2017, 09:45 |
neon1024 |
It’s just an array after all |
# |
Jul 21st 2017, 09:45 |
rudy1976s |
ah ok |
# |
Jul 21st 2017, 09:45 |
neon1024 |
`Configure::write('foo', array_merge(Configure::read('foo'), ['bar', 'baz']))` would work |
# |
Jul 21st 2017, 09:45 |
rudy1976s |
I have set some configures which may be iupdated from plugins when they’re loaded: actualluy i simply rewrite the configure in the plugins but I would prefer be able to append data |
# |
Jul 21st 2017, 09:43 |
rudy1976s |
is there a way to append data to a Configure ? |
# |
Jul 21st 2017, 09:43 |
rudy1976s |
Hello good morning |
# |
Jul 21st 2017, 09:42 |
awi |
thank you very much all together |
# |
Jul 21st 2017, 09:38 |
littleylv |
`$this->response = $this->response->withStatus(200);` |
# |
Jul 21st 2017, 09:38 |
littleylv |
sorry `withStatus` |
# |
Jul 21st 2017, 09:38 |
neon1024 |
As it’s `withStatus()` :P |
# |
Jul 21st 2017, 09:37 |
neon1024 |
https://github.com/cakephp/cakephp/blob/master/src/Http/Response.php#L924 |
# |
Jul 21st 2017, 09:37 |
neon1024 |
Well, we’re all wrong! |
# |
Jul 21st 2017, 09:37 |
littleylv |
`$this->response = $this->response->withStatusCode(200)` will be ok |
# |
Jul 21st 2017, 09:36 |
neon1024 |
Well it looks like the constructor takes the options, https://github.com/cakephp/cakephp/blob/master/src/Http/Response.php#L432 |
# |
Jul 21st 2017, 09:36 |
hmic |
return $this->response->withStatusCode(200); should be it |
# |
Jul 21st 2017, 09:36 |
neon1024 |
Let’s check the source code! |
# |
Jul 21st 2017, 09:35 |
neon1024 |
`$response = new Response(); $response = $response->withStatusCode(200); return $response` |
# |
Jul 21st 2017, 09:35 |
neon1024 |
No. |
# |
Jul 21st 2017, 09:35 |
awi |
so just use return $this->response->statusCode(200); ? |
# |
Jul 21st 2017, 09:34 |
neon1024 |
Given away because the method is a ‘with’ method |
# |
Jul 21st 2017, 09:34 |
neon1024 |
Responses are immutable if I remember rightly. So you’ll need to assign the return of any methods you call |
# |
Jul 21st 2017, 09:33 |
awi |
how do I return a 200 OK from Controller? $this->response->withStatusCode(200) doesnt seem to do the job. |
# |
Jul 21st 2017, 09:32 |
neon1024 |
(shrug) |
# |
Jul 21st 2017, 09:32 |
neon1024 |
https://www.sitepoint.com/run-multiple-versions-php-one-server/ |
# |
Jul 21st 2017, 09:32 |
neon1024 |
Google is producing lots of results for multiple versions of php :slightly_smiling_face: |
# |
Jul 21st 2017, 09:31 |
neon1024 |
Perhaps there is a project like RVM for PHP which allows multiple versions? We have that on our CPanel server, you can pick your PHP version on a per project basis, so it must be possible |
# |
Jul 21st 2017, 09:08 |
ono-t |
Using another web server(apache/nginx etc.) in one computer. |
# |
Jul 21st 2017, 09:06 |
sonu_nk |
i think its possible with php.ini ..but i never did not before |