# |
Jun 27th 2017, 21:27 |
savant |
deyemi: looks like the maintainer pins to specific versions of cake |
# |
Jun 27th 2017, 21:25 |
deyemi |
was unable to download via composer cos it requires cakephp 3.3.* |
# |
Jun 27th 2017, 21:24 |
deyemi |
Hello guys ...has anyone here implemented 'Bakkerij\Notifier plugin in any cakephp 3.4 project? |
# |
Jun 27th 2017, 17:50 |
savant |
https://book.cakephp.org/3.0/en/controllers/components/authentication.html#configuring-authentication-handlers |
# |
Jun 27th 2017, 17:49 |
savant |
missed that you didnt configure the Authenticate classes |
# |
Jun 27th 2017, 17:49 |
savant |
ah yeah @bordplate |
# |
Jun 27th 2017, 17:49 |
bordplate |
Seems putting passwordHasher in a named array called “Form” sorted it out. |
# |
Jun 27th 2017, 17:48 |
chris-andre |
Those written files rimains a riddle.. My app isn't _that_ big, I can't find anything that would do that, nor can I "re-create" those files. Strange. |
# |
Jun 27th 2017, 17:43 |
bordplate |
Trying to migrate old code, but I had this in my UsersController at first |
# |
Jun 27th 2017, 17:43 |
bordplate |
This code is in my AppController, sorry for just posting code |
# |
Jun 27th 2017, 17:40 |
bordplate |
3.4.something |
# |
Jun 27th 2017, 17:40 |
slackebot |
] ] ]); } ``` |
# |
Jun 27th 2017, 17:40 |
bordplate |
``` public function initialize() { parent::initialize(); // Load auth component with SHA-1 as fallback from migration $this->loadComponent('Auth', [ 'authenticate' => [ 'passwordHasher' => [ 'className' => 'Fallback', 'hashers' => [ 'Default', 'Weak' => ['hashType' => 'sha1'] ] |
# |
Jun 27th 2017, 17:40 |
savant |
and what is the exact cakephp version you are using |
# |
Jun 27th 2017, 17:40 |
savant |
how did you set it up |
# |
Jun 27th 2017, 17:39 |
bordplate |
I’m twisting and turning and can’t figure out how to “import” the FallbackPasswordHasher authentication adapter. I’m only getting ```Authentication adapter "Fallback" was not found.``` |
# |
Jun 27th 2017, 17:33 |
savant |
lol |
# |
Jun 27th 2017, 17:32 |
chris-andre |
I believe something wrote those files, but then the undiscovered error was "fixed" before commit. |
# |
Jun 27th 2017, 17:30 |
chris-andre |
CakePdf was added on that commit... |
# |
Jun 27th 2017, 17:28 |
chris-andre |
Sure. Damn. I'll have a look at that commit and the one before then. |
# |
Jun 27th 2017, 17:28 |
savant |
something there is writing those files |
# |
Jun 27th 2017, 17:28 |
savant |
look at the code you wrote |
# |
Jun 27th 2017, 17:28 |
savant |
we wouldnt write those |
# |
Jun 27th 2017, 17:27 |
chris-andre |
I don't write files anywhere :S |
# |
Jun 27th 2017, 17:27 |
chris-andre |
A lot of files.. |
# |
Jun 27th 2017, 17:26 |
chris-andre |
Each "code" is the filename. |
# |
Jun 27th 2017, 17:26 |
savant |
sounds like you wrote a file |
# |
Jun 27th 2017, 17:26 |
chris-andre |
Wft. Anyone experienced something like this; I suddenly have these files in my app root: `0,`, `1,`, `20.06.2017,`, `3],`, `4],`, `[`, `[group_id],`, `[timeart_id`, `UTC,`. |
# |
Jun 27th 2017, 17:11 |
genellern |
13.50 == 13.5 |
# |
Jun 27th 2017, 16:52 |
jotpe |
Cake 2 |
# |
Jun 27th 2017, 16:52 |
jotpe |
I'm using Cake 22 |
# |
Jun 27th 2017, 16:52 |
jotpe |
for some reasons the data does not pass the validation, any ideas? |
# |
Jun 27th 2017, 16:52 |
jotpe |
hello! i have this validation rule: 'rule' => array('decimal', 2), and want to validate this data: [amount_owed] => 13.50 |
# |
Jun 27th 2017, 16:39 |
savant |
again, if you want to nest the articles, the easiest way is to make the find from the Comments table. |
# |
Jun 27th 2017, 16:39 |
savant |
I wouldnt try to do this in sql |
# |
Jun 27th 2017, 16:39 |
savant |
you can screw around with the Collections class maybe |
# |
Jun 27th 2017, 16:39 |
gutts_ |
so there's no way to do it? like using combine? |
# |
Jun 27th 2017, 16:38 |
savant |
you need to do the find from the Comments table |
# |
Jun 27th 2017, 16:37 |
gutts_ |
ex if i have an Articles Model and i have a finder for comments with $this->find()->contain(['Comments']) how do I reverse the structure so comments are 1st level that nest articles? |
# |
Jun 27th 2017, 16:37 |
gutts_ |
in a custom finder, if i'm containing a table, how can i reverse the structure so that the containing table is the first level? |
# |
Jun 27th 2017, 16:02 |
neon1024 |
Heh, no doubt! |