# |
Jul 14th 2017, 17:22 |
ben |
If we're using CakePHP's migrations and want to use a custom path for the location of migration class files, is this configurable? If so, where? |
# |
Jul 14th 2017, 17:12 |
siran |
im testing a controller action that returns a JSON, from the browser I get a JSON responde, but if I do debug($this->_response) then 'body' is empty although response's status is 200... am I doing something wrong here? |
# |
Jul 14th 2017, 17:08 |
mikesmoniker |
Answered my own question: ->update()->set(‘foo’, new QueryExpression(‘foo = foo + 5’)); |
# |
Jul 14th 2017, 16:58 |
mikesmoniker |
Can anyone point me to an example of the syntax for something like `SET foo = foo + 5` using query()->update()… ? |
# |
Jul 14th 2017, 16:35 |
awi |
Or did anyone do some deeper file handling and blog about it? |
# |
Jul 14th 2017, 16:33 |
awi |
did someone sample a MIMEtype Helper which displays images, and implements some Preview-Helpers for pdf, word, excel... |
# |
Jul 14th 2017, 16:31 |
siran |
hey moose |
# |
Jul 14th 2017, 16:29 |
moose517 |
good friday afternoon! |
# |
Jul 14th 2017, 15:57 |
dvd_ |
i will change |
# |
Jul 14th 2017, 15:50 |
jeremyharris |
yes, it is not configured correctly, you are using the wrong key names to set your custom fields |
# |
Jul 14th 2017, 15:50 |
dvd_ |
this was in my initialize() function on AppController |
# |
Jul 14th 2017, 15:48 |
jeremyharris |
see: https://book.cakephp.org/3.0/en/controllers/components/authentication.html#configuring-authentication-handlers |
# |
Jul 14th 2017, 15:48 |
jeremyharris |
should be fields => [‘username’ => ‘usario’, ‘password’ => ‘pswd’] |
# |
Jul 14th 2017, 15:48 |
jeremyharris |
that looks like a configuration error to me |
# |
Jul 14th 2017, 15:47 |
dvd_ |
https://thepasteb.in/p/RghnZq11AOjtz |
# |
Jul 14th 2017, 15:46 |
jeremyharris |
what is your AuthComponent configuration? |
# |
Jul 14th 2017, 15:46 |
dvd_ |
My user saved in DB have password hased |
# |
Jul 14th 2017, 15:45 |
dvd_ |
$this->Auth->identify() always return false |
# |
Jul 14th 2017, 15:44 |
jeremyharris |
can you elaborate dvd_ ? |
# |
Jul 14th 2017, 15:43 |
dvd_ |
Hi, they was have issues in login auth? |
# |
Jul 14th 2017, 15:41 |
jeremyharris |
glad I could help @ericadeefox ! |
# |
Jul 14th 2017, 15:41 |
jeremyharris |
hi! |
# |
Jul 14th 2017, 15:41 |
ericadeefox |
dude thank you @jeremyharris, oh wow. this is gonna make a world of difference to anyone who uses this plugin |
# |
Jul 14th 2017, 15:40 |
matter_ |
Hello |
# |
Jul 14th 2017, 15:40 |
ericadeefox |
oh my god this is _so f-- simple good golly!!_ |
# |
Jul 14th 2017, 15:40 |
ericadeefox |
it'll also make it easier for the current user |
# |
Jul 14th 2017, 15:38 |
jeremyharris |
that might make it easier for future users :slightly_smiling_face: |
# |
Jul 14th 2017, 15:35 |
ericadeefox |
dude actually if I'm making a pull request anyway why don't I just call `disableSessionStatusCheck()` from within the component and wrap _that_ in a cli check? |
# |
Jul 14th 2017, 15:29 |
ericadeefox |
that's what I had originally wanted to do because it was like, well, am I really going to need to test _whether or not the session exists_? |
# |
Jul 14th 2017, 15:28 |
jeremyharris |
well, you could just *always* disable it since you know for a fact cake starts the session for you |
# |
Jul 14th 2017, 15:28 |
ericadeefox |
I had been discouraged from doing that yesterday. =/ x_x |
# |
Jul 14th 2017, 15:27 |
jeremyharris |
yeah, just wrap it in a cli check |
# |
Jul 14th 2017, 15:27 |
jeremyharris |
after the component is added to your controller, do $this->ComponentName->FacebookRedirect->disable |
# |
Jul 14th 2017, 15:27 |
ericadeefox |
I wonder if I can from my app controller now, hm. not like that's a long-term solution |
# |
Jul 14th 2017, 15:26 |
ericadeefox |
I'm just trying to figure out how to call `disableSessionStatusCheck()` now... |
# |
Jul 14th 2017, 15:25 |
iqu |
Jeremyharris: this->url->image in my case could do it. thanks |
# |
Jul 14th 2017, 15:24 |
jeremyharris |
correct |
# |
Jul 14th 2017, 15:24 |
ericadeefox |
nope, the object is up in initialize and nowhere else. now, I'm not supposed to create a new FBRLH object in the tests, right? because that would be meaningless |
# |
Jul 14th 2017, 15:22 |
jeremyharris |
iqu like $this->Url->build? |
# |
Jul 14th 2017, 15:22 |
jeremyharris |
yep, assuming you overwrote their beforeFilter to not re-create the object |
# |
Jul 14th 2017, 15:22 |
ericadeefox |
ok now I've got all that in initialize instead of beforeFilter, so I should be able to use `disableSessionStatusCheck()` now? |