# |
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? |
# |
Apr 20th 2017, 14:10 |
Junior |
the admin controller which is extended by regular controllers |
# |
Apr 20th 2017, 14:10 |
nemmons |
in AppController->initialize() you're setting `$this->_userModel = 'AuthAcl.Users';`? |
# |
Apr 20th 2017, 14:10 |
Junior |
https://gist.github.com/juniorionut/e0a4a512ff3fae58cfc0796817b5a770 |
# |
Apr 20th 2017, 14:08 |
Junior |
and i've noticed that if i do: $this->loadModel('AuthAcl.Users'); twice footprint data is lost |
# |
Apr 20th 2017, 14:08 |
Junior |
nemmons , i managed to make work the users model inside my authacl plugin , but i have no "_footprint" inside my regular models |
# |
Apr 20th 2017, 13:59 |
nemmons |
you haven't been able to get footprint working? if you want to pastebin your appcontroller, your users model, and a controller action + model you're trying to save, i can take a look |
# |
Apr 20th 2017, 13:57 |
nemmons |
There's no way of accessing the auth data in the model layer without doing something like what Footprint does |
# |
Apr 20th 2017, 13:43 |
Junior |
cleptric, i want to modify the beforeSave so i cannot pass from controller |
# |
Apr 20th 2017, 13:43 |
cleptric |
junior: no, you have to pass it from the controller to the model |
# |
Apr 20th 2017, 13:41 |
Junior |
Is there any way of accesing auth data in my app model? I plan to manually save the createdby and updatedby as it is taking me too long with the footprint plugin |
# |
Apr 20th 2017, 13:31 |
nk-sonu |
is setForeignKey() and setBindingKey is my friend ? |