Log message #4020470

# At Username Text
# Apr 26th 2017, 15:50 doug__ I'm trying "$this->Paginator->options(['url'=>Router::url([],true)]);" with no luck
# Apr 26th 2017, 15:49 doug__ not sure what I would need to set pagination options to...
# Apr 26th 2017, 15:49 doug__ URLs
# Apr 26th 2017, 15:49 doug__ even if it's not json format, it's ok, I just need valid iURLs,
# Apr 26th 2017, 15:49 doug__ in json format?
# Apr 26th 2017, 15:49 doug__ I'm just trying to add numbered pagination links as json using paginator->numbered(), and I'm not having any luck, the URLs produced are muddled. What is the easiest way to get page number links like google search result?
# Apr 26th 2017, 15:43 sdevore In CakePHP 3.x I have been using this advice https://book.cakephp.org/3.0/en/orm/retrieving-data-and-resultsets.html#customize-key-value-output
# Apr 26th 2017, 15:39 cpierce what is the best way to get a virutal property in a list?
# Apr 26th 2017, 15:36 julez with the same uploaded file
# Apr 26th 2017, 15:36 julez i another part of this cake2.x application the same rule works
# Apr 26th 2017, 15:35 julez the validation rule is: 'mimeType', ['application/pdf', 'application/octet-stream', 'application/x-unknown']
# Apr 26th 2017, 15:35 julez Anybody has a idea why i got this when validating a fileupload? Can not determine the mimetype.
# Apr 26th 2017, 15:22 pedroseco thanks
# 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 ,:)