Log message #4018549

# At Username Text
# Apr 20th 2017, 14:28 iqu ideas to make simple pagevisit counter? store users visited to session ?
# Apr 20th 2017, 14:27 Junior i load the auth there
# Apr 20th 2017, 14:27 nemmons oh, right sorry
# Apr 20th 2017, 14:27 Junior in my case adminController handles auth
# Apr 20th 2017, 14:26 nemmons well, the docs specifically say to put it in AppController which probably has something to do with the fact that AppController handles Auth
# Apr 20th 2017, 14:26 Junior so it should be fine
# 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