Log message #4049048

# At Username Text
# Jul 6th 2017, 18:06 jarard01 Class 'App\Controller\Chronos' not found
# Jul 6th 2017, 18:06 jeremyharris the example is actually for a unique user :slightly_smiling_face:
# Jul 6th 2017, 18:06 jeremyharris @devito yep, that’s exactly what application rules are for: https://book.cakephp.org/3.0/en/orm/validation.html#applying-application-rules
# Jul 6th 2017, 18:05 devito on the table layer is there a way to see if a username exists before saving new record? trying to do an invlaid login table and I want to create a record only if its a valid username
# Jul 6th 2017, 18:02 sdevore @jarard01 https://book.cakephp.org/3.0/en/chronos.html#generating-differences
# Jul 6th 2017, 18:02 jeremyharris or use straight up php
# Jul 6th 2017, 18:02 jarard01 checking..
# Jul 6th 2017, 18:01 jeremyharris jarard01, yep, check out chronos
# Jul 6th 2017, 17:58 jarard01 are there any cake classes to calculate days between a period?
# Jul 6th 2017, 17:13 origamiwork btw, is the "<name>" next to slackebot the name of the user responding using slackebot?
# Jul 6th 2017, 17:01 radarhill logout after HttpSocket digest login - thanks! Any pointers?
# Jul 6th 2017, 16:59 aro looks around
# Jul 6th 2017, 16:55 origamiwork so /anyController/info/ would take you to the Info Controller rather than whatever "anyController" was
# Jul 6th 2017, 16:54 origamiwork @slackebot I think I understand what you're saying, but I'd want to be able to do it for all controllers at once, not just the users controller.
# Jul 6th 2017, 16:50 dereuromark isnt that /users/* then etc?
# Jul 6th 2017, 16:45 origamiwork Greetings everyone. Does anyone know if it's possible to use routing to override the controller if the second parameter in the url is a certain string? For example, if the second paramer is "info" it should always go to the "info" controller, no matter what the first parameter is (/users/view/123 = UsersController->View(123), /users/info/ = InfoController->Index())
# Jul 6th 2017, 16:15 jeremyharris if so, use collection methods as it is a collection
# Jul 6th 2017, 16:14 jeremyharris the sql result is a query in this case?
# Jul 6th 2017, 16:13 jarard01 is HASH the best way to extract a list of fields from an sql result
# Jul 6th 2017, 16:13 sathomsen @jeremyharris @cleptric Turns out it was a composer server side problem :slightly_smiling_face:
# Jul 6th 2017, 16:05 hughbertd Will look that up
# Jul 6th 2017, 16:05 hughbertd Brill thanks @dereuromark
# Jul 6th 2017, 16:05 dereuromark @hughbertd TinyAuth also provides you with a AuthUser helper out of the box
# Jul 6th 2017, 16:03 hughbertd Oh sweet, so I can just go through the request, makes sense :thumbsup:
# Jul 6th 2017, 16:02 jeremyharris the helper has access to the view and therefore request, so you could do it that way. I have a static AuthUser class that I use for all my user stuff
# Jul 6th 2017, 16:02 jeremyharris yo man!
# Jul 6th 2017, 16:02 hughbertd :wave: jeremy
# Jul 6th 2017, 16:02 hughbertd Hi all Possibly a “please don’t” answer, but, is it possible to get the Logged in user (e.g via Auth) in a Helper
# Jul 6th 2017, 15:56 jeremyharris and what command are you using to update it?
# Jul 6th 2017, 15:55 jeremyharris what is your composer.json constraint for the package set to @sathomsen ?
# Jul 6th 2017, 15:50 sathomsen It’s very strange..
# Jul 6th 2017, 15:50 inoas build the array, wrap parantheses, quote,... return
# Jul 6th 2017, 15:50 sathomsen Exactly:P
# Jul 6th 2017, 15:50 inoas to walk request query or whatever
# Jul 6th 2017, 15:50 inoas so you can even use an anonymous function in place
# Jul 6th 2017, 15:50 cleptric @sathomsen Looking at your composer page, there is a v.0.0.6
# Jul 6th 2017, 15:50 eBug thanks for helping out
# Jul 6th 2017, 15:50 inoas I think there is Model->quote or model->quoteField or so
# Jul 6th 2017, 15:49 eBug i guess there is no other way yes
# Jul 6th 2017, 15:49 inoas $conditions[] = '(transporte_id,asociado_id,operacion_venta_id) IN (' . $yourGeneratedStringOfIdsThatYouEscaped . ')'
# Jul 6th 2017, 15:48 inoas and you have to escape it