# |
Jun 7th 2019, 13:37 |
slackebot |
'image' => '/images/products/2.jpg' ), 'Category' => array( 'id' => '3', 'name' => 'My Category 3' ) ), ... ) |
# |
Jun 7th 2019, 13:37 |
scuadra |
Let's say I have the following array array( (int) 0 => array( 'Product' => array( 'id' => '1', 'category_id' => '2', 'title' => 'Product1', 'date_start' => '2019-03-10', 'image' => '/images/products/1.jpg' ), 'Category' => array( 'id' => '2', 'name' => 'My Category 2' ) ), (int) 1 => array( 'Product' => array( 'id' => '2', 'category_id' => '3', 'titleg' => 'Product2', 'date_start' => '2019-07-01', |
# |
Jun 7th 2019, 13:36 |
scuadra |
Hello. I have a question regarding Cake 2.x |
# |
Jun 7th 2019, 12:16 |
yamcomnet |
anyone got dropzone.js working with cake securityComponent ? |
# |
Jun 7th 2019, 11:39 |
neon1024 |
We implemented a Middleware to change the headers to match our requirements |
# |
Jun 7th 2019, 11:39 |
neon1024 |
First place I would look would be in the Response class |
# |
Jun 7th 2019, 11:38 |
neon1024 |
My guess would be to aid developers and beginners in being able to quickly see their code changes as they develop |
# |
Jun 7th 2019, 11:38 |
neon1024 |
It’s my understanding that those headers are sent even when debug is false |
# |
Jun 7th 2019, 10:52 |
thomas465 |
Is there a good explanation as to why running with `debug = true` causes the response to be sent with `Cache-Control: no-store, no-cache, must-revalidate` ? I have been trawling through the code but can’t see where this is behaviour is triggerd ? |
# |
Jun 7th 2019, 10:24 |
liaogz82 |
and I am not using unit testing for now |
# |
Jun 7th 2019, 10:24 |
liaogz82 |
yeah it is E_ALL |
# |
Jun 7th 2019, 09:25 |
challgren |
If your using Unit Testing check your phpunit.xml for a `<phpunit><php><ini name="error_reporting" value="32767"/></php></phpunit>` |
# |
Jun 7th 2019, 09:23 |
challgren |
I personally use E_ALL |
# |
Jun 7th 2019, 09:22 |
challgren |
Somewhere near line 175 depending on your config |
# |
Jun 7th 2019, 09:22 |
challgren |
In your src/config/app.php look for Error[errorLevel] |
# |
Jun 7th 2019, 09:21 |
liaogz82 |
where can I check that? |
# |
Jun 7th 2019, 09:19 |
challgren |
Do you maybe have deprecation notices turned off in your error_reporting? |
# |
Jun 7th 2019, 09:19 |
liaogz82 |
cos both uses docker |
# |
Jun 7th 2019, 09:18 |
liaogz82 |
ok so how is it possible that it shows up on my DO server when it does not show up on localhost |
# |
Jun 7th 2019, 09:18 |
liaogz82 |
ops |
# |
Jun 7th 2019, 09:18 |
liaogz82 |
the `getErrors` used to be errors |
# |
Jun 7th 2019, 09:18 |
challgren |
ahh thats the Entity |
# |
Jun 7th 2019, 09:17 |
liaogz82 |
``` $this->Workers->save($worker); if (!empty($worker->getErrors())) { $message = $worker->getErrors(); $success = FALSE; } ``` |
# |
Jun 7th 2019, 09:14 |
challgren |
Can you paste the line? |
# |
Jun 7th 2019, 09:13 |
liaogz82 |
controller |
# |
Jun 7th 2019, 09:11 |
challgren |
What class are you seeing it in @liaogz82 |
# |
Jun 7th 2019, 08:59 |
liaogz82 |
nvm I work on it |
# |
Jun 7th 2019, 08:59 |
liaogz82 |
strange it wasnt flagged out locally |
# |
Jun 7th 2019, 08:59 |
challgren |
and will be removed in 4.0 |
# |
Jun 7th 2019, 08:59 |
challgren |
@liaogz82 yes because you are using functions that have been deprecated |
# |
Jun 7th 2019, 08:59 |
liaogz82 |
has error() been depreciated? |
# |
Jun 7th 2019, 08:58 |
liaogz82 |
is this normal? |
# |
Jun 7th 2019, 08:58 |
jotpe |
<?php $this->Form->setTemplates(['submitContainer' => '<div class="options main active">{{content}}</div>']); ?> <?= $this->Form->submit('Login'); ?> |
# |
Jun 7th 2019, 08:58 |
liaogz82 |
I get this in cakephp `errors() is deprecated. Use setError()/getError()` |
# |
Jun 7th 2019, 08:58 |
jotpe |
Right now i have |
# |
Jun 7th 2019, 08:58 |
jotpe |
Hey. Can I set the template directly in the creation of a form element? |
# |
Jun 7th 2019, 08:44 |
k4t |
May I ask why CakePHP HTTP client use PHP streams instead of e.g. CURL? |
# |
Jun 7th 2019, 08:43 |
ondrej.nedvidek |
yep, thanks Mark .. that is what I meant .. |
# |
Jun 7th 2019, 08:22 |
dereuromark |
or it is default not null, which would also require some input here. |
# |
Jun 7th 2019, 08:21 |
dereuromark |
i think he means the literal field in the DB, probably he has requirePresence activated too eagerly. |
# |
Jun 7th 2019, 08:19 |
conehead |
I don't really get what you mean. DisplayField is only used for outputting data? |