# |
Apr 20th 2017, 14:26 |
Junior |
although class UsersController extends AdminController |
# |
Apr 20th 2017, 14:25 |
Junior |
if i remove from appController i no longer have it in login |
# |
Apr 20th 2017, 14:25 |
Junior |
tried that, i need to have in both places |
# |
Apr 20th 2017, 14:25 |
nemmons |
have you tried removing it from AdminController and just having it in AppController? maybe having it in twice is causing a problem |
# |
Apr 20th 2017, 14:24 |
Junior |
I have added the trait in both AppConroller and AdminController |
# |
Apr 20th 2017, 14:24 |
nemmons |
or AdminController whatever |
# |
Apr 20th 2017, 14:24 |
nemmons |
no, you just need the Trait in your AppController |
# |
Apr 20th 2017, 14:24 |
Junior |
nemmons, you said that i need to include the trait in my AppTable ? |
# |
Apr 20th 2017, 14:23 |
Junior |
so on my /login i have the footprint ONLY If i do : $usersTable = $this->loadModel('AuthAcl.Users'); |
# |
Apr 20th 2017, 14:22 |
Junior |
https://gist.github.com/juniorionut/a608a58eb9674c883c712ff5c4933bab |
# |
Apr 20th 2017, 14:22 |
nemmons |
in that case i think you're right, everything is set up correctly |
# |
Apr 20th 2017, 14:22 |
nemmons |
okay no it's fine i believe you |
# |
Apr 20th 2017, 14:22 |
Junior |
i haven't pasted correctly, the start of the class, will redo now |
# |
Apr 20th 2017, 14:21 |
nemmons |
there's no AppTable there |
# |
Apr 20th 2017, 14:20 |
Junior |
i do not include the footprint there |
# |
Apr 20th 2017, 14:20 |
Junior |
nemmons the https://gist.github.com/juniorionut/615ff73845272b65e7604d1ec5f8f2e3 contains both users and app table |
# |
Apr 20th 2017, 14:20 |
nemmons |
oh unless that first gist you sent me was supposed to be the app table i guess, i thought it was the users table |
# |
Apr 20th 2017, 14:19 |
nemmons |
i haven't seen AppTable, does AppTable include the Footprint behavior? So far the only table you've shown me with the Footprint behavior is UsersTable |
# |
Apr 20th 2017, 14:19 |
Junior |
another element that i have noticed is that if $this->loadModel('AuthAcl.Users'); is done twice again no data |
# |
Apr 20th 2017, 14:18 |
Junior |
the https://gist.github.com/juniorionut/6d16479bb76de7f9e1213133ebf2e26d is when i try to create a new order/reservation |
# |
Apr 20th 2017, 14:18 |
Junior |
nemmons, class OrdersTable extends AppTable so it should be fine |
# |
Apr 20th 2017, 14:18 |
nemmons |
well, if you've added the footprint behavior to the odres table (`$this->addBehavior('Muffin/Footprint.Footprint', .... ` in OrdersTable->initialize()) then i agree this looks like it's setup fine and should be working |
# |
Apr 20th 2017, 14:17 |
Junior |
and i can't figure out why |
# |
Apr 20th 2017, 14:17 |
Junior |
so it is loaded, but no auth data |
# |
Apr 20th 2017, 14:17 |
Junior |
i have added some debugs in the behaviour |
# |
Apr 20th 2017, 14:17 |
Junior |
yes, it reaches the behaviour but i have no data |
# |
Apr 20th 2017, 14:16 |
Junior |
https://gist.github.com/juniorionut/6d16479bb76de7f9e1213133ebf2e26d |
# |
Apr 20th 2017, 14:15 |
nemmons |
and OrdersTable has the footprint behavior too? |
# |
Apr 20th 2017, 14:15 |
Junior |
but i do not have user data |
# |
Apr 20th 2017, 14:15 |
Junior |
meaning that it reached the footprint behaviour |
# |
Apr 20th 2017, 14:15 |
Junior |
yes, it does |
# |
Apr 20th 2017, 14:15 |
Junior |
https://gist.github.com/juniorionut/29aec77aec0fbba00a5633b5d96dd736 |
# |
Apr 20th 2017, 14:14 |
nemmons |
and ReservationsController extends AdminController? |
# |
Apr 20th 2017, 14:14 |
Junior |
but it doesn't work on reservations controller |
# |
Apr 20th 2017, 14:13 |
Junior |
meaning if i login |
# |
Apr 20th 2017, 14:13 |
Junior |
and here it works |
# |
Apr 20th 2017, 14:12 |
nemmons |
so you have some controller action in a controller that extends AdminController, and in that action you're calling a table's save method and there's no _footprint in beforeSave? |
# |
Apr 20th 2017, 14:12 |
Junior |
https://gist.github.com/juniorionut/615ff73845272b65e7604d1ec5f8f2e3 |
# |
Apr 20th 2017, 14:12 |
Junior |
nemmons, the models |
# |
Apr 20th 2017, 14:11 |
nemmons |
yeah okay the AppController looks fine to me Junior |
# |
Apr 20th 2017, 14:11 |
backstageel |
Hello, is there a way to share sessions between cake2 and cake 3 on same domain? |