Log message #4054549

# At Username Text
# Jul 20th 2017, 12:41 dereuromark you can customize either the relation and the attribute, or resolve as you did by using a more unique name for the select alias
# Jul 20th 2017, 12:40 dereuromark job is also the related attribute for Jobs table in your main table here. thats why it probably collides @adriencs
# Jul 20th 2017, 12:40 hmic you actually should not allow from there anyways
# Jul 20th 2017, 12:40 hmic Ecorce, because auth did run before, like you specified!
# Jul 20th 2017, 12:03 Ecorce Hmm, loginAction is called everytime now, no matter $this->Auth->allow() (in BeforeFilter of the Controllers)
# Jul 20th 2017, 11:51 Ecorce https://book.cakephp.org/3.0/en/controllers/components/authentication.html#deciding-when-to-run-authentication
# Jul 20th 2017, 11:50 Ecorce (not authCheckIn) :p
# Jul 20th 2017, 11:50 Ecorce I've found in the docs : $this->Auth->config('checkAuthIn', 'Controller.initialize');
# Jul 20th 2017, 11:48 hmic flxfoo, you can use the same name as it will be in a different namespace
# Jul 20th 2017, 11:47 flxfoo yeah forgot I was on server side, that make sense.
# Jul 20th 2017, 11:47 flxfoo thanks hmic and slackebot
# Jul 20th 2017, 11:46 Ecorce (oops I was answering the wrong person) :)
# Jul 20th 2017, 11:46 pedroseco ah, should the controller name be diferent too? Or can I use the same name?
# Jul 20th 2017, 11:46 pedroseco @neon1024 thanks let me try
# Jul 20th 2017, 11:46 admad Ecorce: read my comments carefully :slightly_smiling_face:
# Jul 20th 2017, 11:46 neon1024 @pedroseco Do you mean the namespace of your controller? It should be `App\Controller`, but you’ll need a use statement for the plugin controller as well
# Jul 20th 2017, 11:45 Ecorce I'm working on a prefix, so the namespace should be correct
# Jul 20th 2017, 11:45 admad you can do the auth process earlier using 'authCheckIn' => 'Controller.initialize' in auth config
# Jul 20th 2017, 11:45 pedroseco @neon1024 and the namespace should be the App\Controller or PluginName\Controller ?
# Jul 20th 2017, 11:44 admad so $this->Auth->user('id') inside beforeFitler() is always gonna return null
# Jul 20th 2017, 11:44 admad by default auth process is done AFTER controller before filter is called
# Jul 20th 2017, 11:43 Ecorce (line 45 : $this->Auth->user('id') empty, whereas login succeeded)
# Jul 20th 2017, 11:42 Ecorce hmic : https://gist.github.com/anonymous/be95621bd0be2447fcb59040dfa8bac3
# Jul 20th 2017, 11:42 neon1024 `class PedrosecoController extends PluginsController {`
# Jul 20th 2017, 11:41 pedroseco should the derivate controller have the namespace of the plugin one?
# Jul 20th 2017, 11:41 pedroseco probably I’m doing it wrong then, but can’t seem to make it work.
# Jul 20th 2017, 11:41 hmic pedroseco: just extend it with its namespace
# Jul 20th 2017, 11:41 mirec hmic: thanks. I see there are supported commands listed in docs. it's really handy feature
# Jul 20th 2017, 11:40 pedroseco so I can overwrite some methods
# Jul 20th 2017, 11:40 pedroseco how can I extend a controllers plugin in my app?
# Jul 20th 2017, 11:40 pedroseco hi guys!
# Jul 20th 2017, 11:38 hmic mirec, usually the change works. there are things that do not - you might need to read the docs closely
# Jul 20th 2017, 11:38 mirec guys please.. when I make migrations with 'change' method, does it rollback correctly? Or do I need define 'up' and 'down' methods?
# Jul 20th 2017, 11:38 admad *anchors are..
# Jul 20th 2017, 11:37 hmic so you can Router::url() to it, but connecting a route does not make sense
# Jul 20th 2017, 11:37 admad anchors and not supported on server side. They are a client side construct.
# Jul 20th 2017, 11:37 hmic flxfoo: how should it connect ot an anchor? - it gets not send to the server ever!
# Jul 20th 2017, 11:36 flxfoo did anyone already used an achor in a router::connect, because for me it routes to the new URL but does not go to the anchor?
# Jul 20th 2017, 11:35 flxfoo hi all,
# Jul 20th 2017, 11:33 hmic Ecorce, cant quite follow, maybe you paste the code of the appcontroller and controller involved, including the paths to the files
# Jul 20th 2017, 11:32 neon1024 Hey @birdy247 are you here? This is the PR I keep referring to - about timezones - https://github.com/cakephp/cakephp/pull/8588