Log message #3270191

# At Username Text
# May 27th 2014, 07:39 Hippo Oh a Crud is pretty awesome Jippi, wish I had it in my prev project :/ lol
# May 27th 2014, 07:39 Hippo Cheers!
# May 27th 2014, 07:39 Hippo Okay I'm done for the day :)
# May 27th 2014, 07:35 brandon_ my db is setup i'm in phpmyadmin. maybe i entered the wrong credentials
# May 27th 2014, 07:34 Hippo need ingredients :p
# May 27th 2014, 07:34 Hippo brandon_: set up your database before you try baking :)
# May 27th 2014, 07:33 Hippo Yay, I have 10 more min to debug, lol
# May 27th 2014, 07:33 Jippi Hippo: odd, thats the problem then :)
# May 27th 2014, 07:33 brandon_ says url rewriting isn't enabled and it can't connect to the db. i assume thats why?
# May 27th 2014, 07:32 Hippo brandon_: If you open up that install in your browser, are the lights all green?
# May 27th 2014, 07:31 Hippo That 'enable' method doesnt get called if I put a die in it
# May 27th 2014, 07:30 Jippi the oven is broken?
# May 27th 2014, 07:30 brandon_ anyone know whats going on?
# May 27th 2014, 07:28 brandon_ when trying to bake, i get an error: http://prntscr.com/3mztu8
# May 27th 2014, 07:26 Jippi which could be a load order issue, that crud haven't run when auth checks first
# May 27th 2014, 07:25 Jippi Hippo: https://github.com/FriendsOfCake/crud/blob/cake3/Action/BaseAction.php#L74 should add it
# May 27th 2014, 07:25 Jippi then the problem is that
# May 27th 2014, 07:24 Hippo it does return
# May 27th 2014, 07:23 Jippi line 254 should return if not, and that could be the root cause
# May 27th 2014, 07:23 Jippi also make sure that add() is actually in that array :)
# May 27th 2014, 07:22 Jippi https://github.com/cakephp/cakephp/blob/3.0/src/Controller/Component/AuthComponent.php#L249-L255 CRUD injects into $controller->methods[] array, or should
# May 27th 2014, 07:22 jose_zap it should be called an redirect
# May 27th 2014, 07:22 jose_zap Hippo: can you put a few debug() in AuthComponent::startup() ?
# May 27th 2014, 07:21 Hippo Haha
# May 27th 2014, 07:20 Jippi Hippo: okay, try to debug the shit out of it :) may be a cake or crud bug :P
# May 27th 2014, 07:20 Hippo ie. Auth, Session, Crud. Does the same thing!
# May 27th 2014, 07:19 Hippo Yeah
# May 27th 2014, 07:19 jose_zap Hippo: above Crud, I mean
# May 27th 2014, 07:18 Hippo jose_zap: as in move the 'Session' value down? Same thing :/
# May 27th 2014, 07:18 Hippo all good :) when I get some time ill see if I can replicate in Cake 2
# May 27th 2014, 07:17 jose_zap Hippo: can you put AuthComponent first in the list of components?
# May 27th 2014, 07:16 Jippi Hippo: i've not tested Crud + Cake3 in auth yet to be honest, but it *should* work unless something has changed (it probbaly have :P)
# May 27th 2014, 07:16 Hippo https://gist.github.com/commercial-hippie/ce0d3cd4db5c0cd7705d
# May 27th 2014, 07:15 Hippo ie. sends me to login form
# May 27th 2014, 07:15 Hippo When I just put the empty `public function add(){}` there, it gets blocked.
# May 27th 2014, 07:15 Hippo Thats what I thought. Heading to `/users/add`, loads up the form when there is no `public function add(){}` in my usersController.
# May 27th 2014, 07:13 Jippi Hippo: AuthComponent should block it if it's configured correctly - crud does not do anything magic in terms of not playing cool with everything cake offers
# May 27th 2014, 07:13 jose_zap Hippo: you mean after they have logged in?
# May 27th 2014, 07:13 Hippo Loading the AuthComponent doesn't block this - anyone can access it
# May 27th 2014, 07:12 Hippo If I just go to /users/add it works
# May 27th 2014, 07:12 Hippo If I define all my Crud actions in the AppController, 'Crud.Index', 'Crud.Add' etc. then I don't really need a public function add() {} in my UsersController