# |
Jun 27th 2019, 08:43 |
challgren |
Ok back to 3.8.0 why didn’t the validation deprecation change happen during the RC? |
# |
Jun 27th 2019, 08:41 |
madbbb |
@admad thank you! It is really sends event to global listener))) I didn't notice that trait returns local event manager |
# |
Jun 27th 2019, 08:41 |
slackebot |
<challgren> |
# |
Jun 27th 2019, 08:41 |
neon1024 |
;) |
# |
Jun 27th 2019, 08:41 |
neon1024 |
Careful, or we’ll throw a random u in there too! |
# |
Jun 27th 2019, 08:40 |
challgren |
England spells it cancelled |
# |
Jun 27th 2019, 08:40 |
neon1024 |
I don’t get that one |
# |
Jun 27th 2019, 08:39 |
challgren |
Well you know why in England canceled has 2 l’s, its because we gave them that extra L :P |
# |
Jun 27th 2019, 08:39 |
neon1024 |
Although with Boris Johnson on the horizon, we’ll screw that up as well :face_palm: |
# |
Jun 27th 2019, 08:39 |
neon1024 |
Besides, *cough* Trump |
# |
Jun 27th 2019, 08:39 |
admad |
x) |
# |
Jun 27th 2019, 08:39 |
neon1024 |
Careful @challgren without England your country wouldn’t exist |
# |
Jun 27th 2019, 08:38 |
admad |
Yeah not like England is gonna win that either :P |
# |
Jun 27th 2019, 08:38 |
challgren |
And we’ll beat the English just like we did many many years ago :P |
# |
Jun 27th 2019, 08:38 |
neon1024 |
Yeah, if England beat Norway, it might be ENG v USA |
# |
Jun 27th 2019, 08:37 |
challgren |
@neon1024 USA USA!!! |
# |
Jun 27th 2019, 08:37 |
neon1024 |
I’ll watch the Womens Football World Cup instead ;) |
# |
Jun 27th 2019, 08:37 |
neon1024 |
@admad I don’t see England making the semi-finals |
# |
Jun 27th 2019, 08:36 |
admad |
You should worry about Sunday xP |
# |
Jun 27th 2019, 08:36 |
slackebot |
config/app.php. in [/Users/challgren/Projects/electric/vendor/cakephp/cakephp/src/Core/functions.php, line 311] ` |
# |
Jun 27th 2019, 08:36 |
challgren |
Arhhhhhhhh `Deprecated Error: You are using a deprecated argument order for Cake\Validation\Validator::allowEmptyString. You should reverse the order of your `when` and `message` arguments so that they are `message, when`. - /Users/challgren/Projects/electric/vendor/cakephp/cakephp/src/Validation/Validator.php, line: 855 You can disable deprecation warnings by setting `Error.errorLevel` to `E_ALL and ~E_USER_DEPRECATED` in your |
# |
Jun 27th 2019, 08:36 |
neon1024 |
@admad India to beat Windies by 4 wickets today I reckon |
# |
Jun 27th 2019, 08:35 |
admad |
Any event you dispatch will be sent to global instance too |
# |
Jun 27th 2019, 08:32 |
madbbb |
why can't shell use global instance? |
# |
Jun 27th 2019, 08:31 |
admad |
Yes, you are setting on global instance |
# |
Jun 27th 2019, 08:29 |
madbbb |
$this->getEventManager() is clean without any listeners on it. Are instances are different? |
# |
Jun 27th 2019, 08:22 |
madbbb |
bootstrap.php loads after bootstrap_cli.php |
# |
Jun 27th 2019, 08:17 |
kgb.acct.personal |
bootstrap_cli.php |
# |
Jun 27th 2019, 08:11 |
madbbb |
I register my event listeners in bootstrap.php file everything work as expected, but I can't see registered listeners in my shell. Where do I register them to get listeners work in shell? |
# |
Jun 27th 2019, 08:06 |
madbbb |
Morning! |
# |
Jun 27th 2019, 07:45 |
conehead |
Hmm if you would want the user to let him choose which fields he wants to be seen in a form and which not. How would you go for it? Save his configuration in the database and pass it into each session. When rendering the form access the session and check if the field should be visible? |
# |
Jun 27th 2019, 07:31 |
neon1024 |
Morning everyone |
# |
Jun 27th 2019, 07:19 |
conehead |
Is the expected value in code_id? Or is the value incorrect? |
# |
Jun 27th 2019, 05:29 |
slackebot |
else { $this->log('no save'); } } } ``` |
# |
Jun 27th 2019, 05:29 |
chan |
after save data i want to save code_id by auto increment id, but code_id not save in table, what wrong? my coding is following. i write model of cakephp2 afterSave function. ``` public function afterSave($created, $options = array()) { if ($created) { $this->data[$this->alias]['id'] = $this->id; $this->data[$this->alias]['code_id'] = 'U' . str_pad($this->id, 5, "0", STR_PAD_LEFT); if($this->save($this->data)) { $this->log('save'); } |
# |
Jun 27th 2019, 03:00 |
challgren |
CakePHP 3.8.0 is released!! https://github.com/cakephp/cakephp/releases/tag/3.8.0 |
# |
Jun 26th 2019, 22:42 |
mdotobie |
Makes sense @cnizzardini. Sounds like you can still throw some exceptions from your abstraction for a nicer developer experience though |
# |
Jun 26th 2019, 22:34 |
cnizzardini |
But if an engineer goes to use it wrong, it should fail fantastically anyways, even without a nice LogicException message |
# |
Jun 26th 2019, 22:33 |
cnizzardini |
@mdotobie my use case is different than that, pulling data from db and passing it into an absraction layer, would've been nice if was easy |
# |
Jun 26th 2019, 22:24 |
mdotobie |
I’ll use `debug()` on the `$form` object in the console and see if the output matches |
# |
Jun 26th 2019, 22:20 |
mdotobie |
That’s a good point. I’m not using `__dumpinfo()` directly but that output happens in the console right after the object is instantiated so Psy might be using it for output it and i just don’t realize it |