# |
Apr 14th 2018, 16:32 |
alexmax |
I cleared the redis database, logged in, and checked redis with `KEYS *` and saw a session in there |
# |
Apr 14th 2018, 16:32 |
alexmax |
It sure is using Redis |
# |
Apr 14th 2018, 16:29 |
admad |
Check your session config |
# |
Apr 14th 2018, 16:29 |
admad |
@alexmax the error shows its trying to write session file, so not using redis like you say |
# |
Apr 14th 2018, 16:25 |
saeideng |
can you upgrade to 3.5.14? |
# |
Apr 14th 2018, 16:23 |
saeideng |
recently session has changed |
# |
Apr 14th 2018, 16:22 |
saeideng |
please open issue |
# |
Apr 14th 2018, 16:22 |
alexmax |
And didn't see anything |
# |
Apr 14th 2018, 16:22 |
alexmax |
We were runnin 5.6 + Cake 3.29 |
# |
Apr 14th 2018, 16:22 |
alexmax |
It shows up in the error.log file in CakePHP |
# |
Apr 14th 2018, 16:21 |
saeideng |
php or cake? |
# |
Apr 14th 2018, 16:21 |
saeideng |
from? |
# |
Apr 14th 2018, 16:21 |
alexmax |
after upgrading |
# |
Apr 14th 2018, 16:21 |
saeideng |
? |
# |
Apr 14th 2018, 16:20 |
saeideng |
or after upgrading |
# |
Apr 14th 2018, 16:20 |
saeideng |
do you receive always? |
# |
Apr 14th 2018, 16:14 |
alexmax |
We're running CakePHP 3.5.12 + PHP 7.1 |
# |
Apr 14th 2018, 16:12 |
alexmax |
There's no stack trace |
# |
Apr 14th 2018, 16:11 |
alexmax |
And we're not noticing any session problems thus far |
# |
Apr 14th 2018, 16:11 |
alexmax |
We're just using Redis session handling |
# |
Apr 14th 2018, 16:10 |
alexmax |
`2018-04-14 15:58:24 Warning: Warning (2): session_write_close(): Failed to write session data using user defined save handler. (session.save_path: /var/lib/php/mod_php/session) in [Unknown, line 0]` |
# |
Apr 14th 2018, 16:10 |
alexmax |
Anybody else getting a warning message in their error logs dealing with sessions? |
# |
Apr 14th 2018, 15:35 |
hiryu85 |
works fine with /a/bar too :D |
# |
Apr 14th 2018, 15:35 |
hiryu85 |
Hello, i can use patterns in Route::scope('/a/:artist', ['artist' => '(foo)'], function ....) ? |
# |
Apr 14th 2018, 12:47 |
maZed_ |
i will check out the webinars on youtube i think will be my best thing right now |
# |
Apr 14th 2018, 12:42 |
spencdev |
There a live webinars that you can attend, though. |
# |
Apr 14th 2018, 12:40 |
spencdev |
There a few use-case tutorials of CakePHP but not a fully comprehensive one as far as I know. I think they main reason for that is because of how well the documentation is written. For each core component that CakePHP has there is a full page dedicated to it with examples. |
# |
Apr 14th 2018, 12:25 |
maZed |
where is a good tutorial for cakephp? i have never used it or really know what it is.. im installing netbeans and see cakephp as a addon. I honestly havent coded in php for about 15 years and getting ready to start designing a inventory website for my wife |
# |
Apr 14th 2018, 12:02 |
spencdev |
@jasmun `$this->autoRender = false;` |
# |
Apr 14th 2018, 09:18 |
birdy247 |
Just create a new repo and push the plugin files? |
# |
Apr 14th 2018, 09:18 |
birdy247 |
what is the best way to make this its own plugin |
# |
Apr 14th 2018, 09:18 |
birdy247 |
If I have made a plugin in an app |
# |
Apr 14th 2018, 01:44 |
jasmun |
I've tried a variety of different combinations of the commented out code, but nothing seems to get rid of the missing template error.... |
# |
Apr 14th 2018, 01:43 |
slackebot2 |
which view vars JsonView should serialize. $this->set('_serialize', 'reservations'); return $this->response;``` |
# |
Apr 14th 2018, 01:43 |
slackebot2 |
= false; //$this->RequestHandler->renderAs($this, 'application/json'); //$this->viewBuilder()->setClassName('Json'); //$this->response = $this->response->withType('json'); //$this->request = $this->request->withParam('_ext', 'json'); $reservations = $this->Reservations->indexData(); // Set the view vars that have to be serialized. $this->set('reservations', $reservations); // Specify |
# |
Apr 14th 2018, 01:43 |
jasmun |
Hi all - trying to wrap my brain around how to use json calls in cake3. I am trying to get a json_encoded array of data from an ajax call. I've tried following the examples given here: https://book.cakephp.org/3.0/en/views/json-and-xml-views.html, but I keep getting a missing template error: `"message": "Template file \u0022Reservations\/json\/index.ctp\u0022 is missing.",` Here is the code that is in my controller: ``` //$this->autoRender |
# |
Apr 13th 2018, 23:18 |
frazr |
and set migration_path inside the environment i guess |
# |
Apr 13th 2018, 23:18 |
frazr |
kinda want to avoid hacking the phinx lib but one solution would be to pass the environment to getMigrations() |
# |
Apr 13th 2018, 23:17 |
frazr |
Doesn't seem to support that |
# |
Apr 13th 2018, 23:11 |
frazr |
when i run eg. phinx migrate B it processses a different migration set than the default "development" environment that is |
# |
Apr 13th 2018, 23:08 |
frazr |
Hi there, anyone familiar with Phinx here? :) im wondering if its possible to have dynamic migration paths, say for example i want environment B to have a certain migration path ? |