Log message #4054537

# At Username Text
# 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
# Jul 20th 2017, 11:28 Ecorce (there's only Config.time in session, no more Auth.User)
# Jul 20th 2017, 11:28 Ecorce Just, $this->Auth->user() returns empty
# Jul 20th 2017, 11:28 Ecorce However, $this->Auth->allow doesn't throw an exception, so I guess Auth is loaded
# Jul 20th 2017, 11:26 Ecorce There was no problem before, when Auth was loaded in the basic AppController (not the one I created for the prefix)
# Jul 20th 2017, 11:25 Ecorce And I don't understand why
# Jul 20th 2017, 11:25 Ecorce after login, any action returns null when I get $this->Auth->user()
# Jul 20th 2017, 11:24 Ecorce Finally I was wrong, my Auth session disappears when calling an action (after login, which succeeds and create a session, that I can get with $this->Auth->user())
# Jul 20th 2017, 11:24 hmic you have checked the namespaces of all files involved?
# Jul 20th 2017, 11:23 hmic do tell
# Jul 20th 2017, 11:21 Ecorce Still in trouble with the AuthComponent, loaded in the AppController of my prefix folder
# Jul 20th 2017, 11:20 Ecorce Hello, I'm back again
# Jul 20th 2017, 10:52 andri_ i have only one rule in buildRules.... $rules->add($rules->isUnique(['id']))