# |
Apr 20th 2017, 21:09 |
technofection |
pull the appcontroller now @erik180486 and upload to server |
# |
Apr 20th 2017, 21:08 |
Erik180486 |
can I do something? |
# |
Apr 20th 2017, 21:07 |
rudy1976s |
so no session |
# |
Apr 20th 2017, 21:07 |
rudy1976s |
but in behaviors there is no request |
# |
Apr 20th 2017, 21:07 |
technofection |
@rudy1976s , you can pull it from session -> Auth |
# |
Apr 20th 2017, 21:05 |
Erik180486 |
I have no clue what they mean |
# |
Apr 20th 2017, 21:05 |
Erik180486 |
my hosting is telling me this: there are no directories for redirecting to the server. |
# |
Apr 20th 2017, 21:03 |
rudy1976s |
but how can I pass the logged user to the behavior ? |
# |
Apr 20th 2017, 21:03 |
Erik180486 |
so then it still could be a folder problem? |
# |
Apr 20th 2017, 21:02 |
Erik180486 |
ok that's good |
# |
Apr 20th 2017, 21:02 |
technofection |
That's cool, @erik180486 , it means htaccess is all good |
# |
Apr 20th 2017, 21:02 |
technofection |
@rudy1976s Yeah, Behaviors are the best approach for this that way you can share / apply same code to multiple models (tables) |
# |
Apr 20th 2017, 21:02 |
Erik180486 |
HELLO WORLD is on my screen now |
# |
Apr 20th 2017, 21:01 |
technofection |
Yeah, Behaviors are the best approach for this @erik180486 , that way you can share / apply same code to multiple models (tables) |
# |
Apr 20th 2017, 21:01 |
Erik180486 |
will pull it first |
# |
Apr 20th 2017, 21:00 |
Erik180486 |
wait, I will put it online |
# |
Apr 20th 2017, 21:00 |
rudy1976s |
and was trying to figure the best approach |
# |
Apr 20th 2017, 21:00 |
technofection |
@erik180486 , I made a change to webroot, index.php but that is not taking any effect |
# |
Apr 20th 2017, 21:00 |
rudy1976s |
I need to create a behaior that saves createdby and modified by and need to inject logged user |
# |
Apr 20th 2017, 20:59 |
technofection |
@rudy1976s inject to the Entity you are saving? Yes possible |
# |
Apr 20th 2017, 20:59 |
technofection |
If I commit a file, does that go to apache immediately? |
# |
Apr 20th 2017, 20:59 |
rudy1976s |
is there a way from a controller to inject a variable into beforeSave event ? |
# |
Apr 20th 2017, 20:56 |
Erik180486 |
sent |
# |
Apr 20th 2017, 20:56 |
Erik180486 |
thx |
# |
Apr 20th 2017, 20:55 |
technofection |
send to technofection |
# |
Apr 20th 2017, 20:54 |
technofection |
hold on |
# |
Apr 20th 2017, 20:54 |
Erik180486 |
You'll only be able to find a GitHub user by their email address if they've chosen to list it publicly. Otherwise, use their username instead. |
# |
Apr 20th 2017, 20:53 |
technofection |
send the invite to tech@am-horizon.com |
# |
Apr 20th 2017, 20:53 |
Erik180486 |
thanks for your help btw! |
# |
Apr 20th 2017, 20:53 |
Erik180486 |
what's your name there? |
# |
Apr 20th 2017, 20:53 |
technofection |
Okay, let me try |
# |
Apr 20th 2017, 20:52 |
Erik180486 |
can I invite you with github? |
# |
Apr 20th 2017, 20:52 |
technofection |
Why does it still redirect me to users/login then :( |
# |
Apr 20th 2017, 20:52 |
Erik180486 |
I did |
# |
Apr 20th 2017, 20:51 |
technofection |
Disable the Auth in src/Controller/AppController.php for a while |
# |
Apr 20th 2017, 20:50 |
Erik180486 |
and then I have src/templte/admin/ with the two table folders with the ctp files |
# |
Apr 20th 2017, 20:50 |
Erik180486 |
in src/controller there is appcontroller (not in the admin folder) with the auth |
# |
Apr 20th 2017, 20:49 |
Erik180486 |
with two tables |
# |
Apr 20th 2017, 20:49 |
Erik180486 |
in src/controller i had an admin folder |
# |
Apr 20th 2017, 20:49 |
technofection |
might be |
# |
Apr 20th 2017, 20:49 |
Erik180486 |
so it should be a folder thing? |