Log message #4020457

# At Username Text
# Apr 26th 2017, 15:22 slackebot1 controllers, what could I do?
# Apr 26th 2017, 15:22 pedroseco Hi guys! I’m having a couple of difficulties implementing a logic here in Cake and would like a opinion. I created a “shortcode” solution for my backoffice content on which I would replace it for a block of code that represented for instance, a Google Maps. I can do this on /view by using elements or view cells. But I would prefer to do it in the controller and return the $table->body with the completed html. Since I can’t use elem
# Apr 26th 2017, 15:16 chris-andre I need to utf8_decode($value) before it is output to CSV utf-8 export.
# Apr 26th 2017, 15:13 chris-andre Is it some way I can utf8_decode() some columns/properties in a resultset?
# Apr 26th 2017, 15:04 dereuromark inside the url asset generation of the helper
# Apr 26th 2017, 15:03 dereuromark Instead try to overwrite the scheme/protocol
# Apr 26th 2017, 15:03 dereuromark I think you are using it wrong, no slash should be added if it is relative to img dir
# Apr 26th 2017, 14:59 Martin` I use the double slash so browser decides if it loads over https or http
# Apr 26th 2017, 14:58 Martin` html helper adds img/ at the begin of a url when it starts with a double slash
# Apr 26th 2017, 14:58 Neon1024 Hard to copy and paste an invisible character
# Apr 26th 2017, 14:57 Neon1024 Yeah I have tried trim() with no success
# Apr 26th 2017, 14:57 Neon1024 Guess I could preg_replace() anytthing which isn’t alphanumeric
# Apr 26th 2017, 14:57 jeremyharris `trim()` accepts an array of chars to trim as the second param
# Apr 26th 2017, 14:56 Neon1024 As my shell is parsing it as a character so it doesn’t match ‘Male’ string
# Apr 26th 2017, 14:56 Neon1024 Could not find gender `Male‎ ` for unit `Jake`
# Apr 26th 2017, 14:56 Neon1024 https://en.wikipedia.org/wiki/Left-to-right_mark
# Apr 26th 2017, 14:56 Neon1024 Anyone know how to trim a left-to-right character?
# Apr 26th 2017, 14:21 slackebot1 objects.
# Apr 26th 2017, 14:21 slackebot1 outputting an arbitrary number of fields based on user request and therefore need a programmatic way of determining how to refer to the model to correctly get the data out of the return object. I can't assume the plural version, nor can I use the singular all the time. The Inflector _does_ the tense switching. But is there some utility available to request _when_ this tense switch needs to happen? It gets even worse when I have a table full of potenti
# Apr 26th 2017, 14:21 holisticnetworking Ok. So I'm having a problem I'll bet I'm completely overcomplicating. Specifically, I'm having problems with dynamically determining the subject tense when interacting with models. While the Models themselves are always plural, the return from a query might be singular or plural based on the association between models. If Invoice HasOne Client, then the output object will be invoices->{n}->client. This becomes a problem when, for
# Apr 26th 2017, 14:14 spriz Keep getting `Code was already redeemed` - not sure how I'm supposed to get another one :thinking_face:
# Apr 26th 2017, 14:14 spriz Meh, problem for tomorrow :) Stupid Oauth
# Apr 26th 2017, 14:09 elboletaire I've a `belongsToMany` relation between two entities, and I've set `through` to define the relation class. In that class, a part from the `belongsTo` of the two related tables, I've relations with other models. Is there any way to load data from that relations in the `joinTable`/`through` class?
# Apr 26th 2017, 13:50 doug__ thank you sir!
# Apr 26th 2017, 13:50 Neon1024 Hm, I should fix that heading
# Apr 26th 2017, 13:49 Neon1024 Because it uses the routing directly. You’ll have to set it’s options before calling it to form the correct urls. http://jedistirfry.co.uk/blog/2015-04/paginating-multiple-types-of-list-in-the-same-controller/
# Apr 26th 2017, 13:46 doug__ Does anyone know why $this->Paginator->numbers() returns mis-formatted URLS? For exampe, ../en-us/articles turns into ../articles/index/en-us
# Apr 26th 2017, 13:39 spriz I just remembered somebody raging about a php lib where you'd do that - wanted to be sure it's not hybridaauth ,:)
# Apr 26th 2017, 13:38 spriz no @dereuromark - I know that but didn't see "oauth" anywhere
# Apr 26th 2017, 13:36 admad if you use an iframe it would surely seem so to the naive user :P
# Apr 26th 2017, 13:36 dereuromark thats not how oauth works
# Apr 26th 2017, 13:35 dereuromark LOL
# Apr 26th 2017, 13:34 spriz in your case you enter your email/password for github on your web app? :P
# Apr 26th 2017, 13:33 admad as long as the hybridauth devs don't break the lib :P
# Apr 26th 2017, 13:32 admad my hyridauth plugin is as plug-n-play as it gets
# Apr 26th 2017, 13:31 spriz that's why I wanted to use https://github.com/thephpleague/oauth2-client :)
# Apr 26th 2017, 13:31 spriz I wanted something that could plug'n'play different Oauth2 providers :S
# Apr 26th 2017, 13:31 admad @spriz if you are feeling brave you can try out https://github.com/ADmad/cakephp-social-auth :slightly_smiling_face:
# Apr 26th 2017, 13:16 dereuromark I use hybridauth to login with github
# Apr 26th 2017, 13:15 spriz Does anyone have example of this running: https://github.com/UseMuffin/OAuth2 ? :thinking_face:
# Apr 26th 2017, 13:11 inoas test runs