# |
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'])) |
# |
Jul 20th 2017, 10:52 |
mirec |
take a look on generated queries in your sql log |
# |
Jul 20th 2017, 10:52 |
mirec |
or not.. I guess there is some null check in existsin rule... would be silly not to check null values |
# |
Jul 20th 2017, 10:51 |
mirec |
seems like thing with buildRules. rule existsIn ? |
# |
Jul 20th 2017, 10:50 |
andri_ |
but once i enter an existing id for it. it gives me that error. |
# |
Jul 20th 2017, 10:49 |
andri_ |
the entity can be saved if foreign_key_id == NULL |
# |
Jul 20th 2017, 10:49 |
mirec |
what SQL query is generated? |
# |
Jul 20th 2017, 10:48 |
andri_ |
yes |
# |
Jul 20th 2017, 10:47 |
mirec |
is your association have configured as 'joinType' => 'left' ? |
# |
Jul 20th 2017, 10:46 |
andri_ |
the error says record not found in table ... with primary key [NULL] |