# |
Jul 5th 2017, 13:19 |
inoas |
For querying I found Amazon Cloud Search, Solr/Lucene and ElasticSearch |
# |
Jul 5th 2017, 13:18 |
inoas |
Slightly OT: google site/custom search shuts down its business support - if you have abitary web pages/web apps how do you create specific search for those? |
# |
Jul 5th 2017, 13:17 |
inoas |
lol |
# |
Jul 5th 2017, 13:16 |
admad |
*can't say |
# |
Jul 5th 2017, 13:16 |
admad |
can't about the rest but `bin/cake app unoptimize` will surely be added to cake 4 roadmap. |
# |
Jul 5th 2017, 13:13 |
inoas |
if such a thing happens: https://github.com/cakephp/cakephp/issues/10852#issuecomment-313089129 I just hope plugins will stay plugins (like DispatchFilters next to middleware) and we just get a new type of pluggable software: module, service, engine - whatever |
# |
Jul 5th 2017, 13:12 |
jarard01 |
I've debugged the request data: https://gist.github.com/spacebiscuit/0024650d9e6366f8d66de4b1ebc3338b |
# |
Jul 5th 2017, 13:11 |
jarard01 |
neon1024, hi I've hit brick wall with the file upload |
# |
Jul 5th 2017, 12:33 |
casmo |
Latest MySQL version requires to group all fields that are selected |
# |
Jul 5th 2017, 12:33 |
casmo |
Does CakePHP has an auto group by selector? e.g. group('*'); ? |
# |
Jul 5th 2017, 12:10 |
cleptric |
And wouldn’t you normally want to do sth like `ON DUPLICATE KEY UPDATE value = value + 1`? |
# |
Jul 5th 2017, 12:09 |
cleptric |
Whats the error? |
# |
Jul 5th 2017, 12:06 |
popperz0r |
any1 has used epilog before? |
# |
Jul 5th 2017, 12:04 |
ldsign |
Thanks. I think thats the right hint :slightly_smiling_face: |
# |
Jul 5th 2017, 12:03 |
popperz0r |
does it looks like something wrong? |
# |
Jul 5th 2017, 12:03 |
slackebot |
->execute(); |
# |
Jul 5th 2017, 12:03 |
popperz0r |
$query = $this->CampaignLandingLayoutField->query(); $query ->insert(['campaign_id', 'landing_layout_field_id', 'value']) ->values(['campaign_id' => $campaign->id, 'landing_layout_field_id' => $field_id, 'value' => $value]) ->epilog('ON DUPLICATE KEY UPDATE value=1') |
# |
Jul 5th 2017, 12:03 |
popperz0r |
my epilog is not working |
# |
Jul 5th 2017, 12:03 |
popperz0r |
Hello |
# |
Jul 5th 2017, 12:02 |
cleptric |
I guess you could figure sth out to set it in your AppController for certain conditions |
# |
Jul 5th 2017, 12:02 |
cleptric |
https://book.cakephp.org/3.0/en/views.html#creating-your-own-view-classes |
# |
Jul 5th 2017, 12:00 |
ldsign |
So there is no way in extending the core JsonVIew and not touching my other code? |
# |
Jul 5th 2017, 11:59 |
ldsign |
Thanks. So I am forced to give every method which uses JsonView a custom viewClass? |
# |
Jul 5th 2017, 11:57 |
cleptric |
@ldsign Using you own JsonView wich inherits from JsonView and load the Helper there |
# |
Jul 5th 2017, 11:55 |
cleptric |
Yeah, this rewinds the stream to the start? Advanced php :) |
# |
Jul 5th 2017, 11:55 |
neon1024 |
Ahh, yes! Thanks chaps. I have some error text now :slightly_smiling_face: |
# |
Jul 5th 2017, 11:54 |
neon1024 |
Worth a shot! Thanks Jorge :slightly_smiling_face: |
# |
Jul 5th 2017, 11:54 |
neon1024 |
Oh you can just cast it? |
# |
Jul 5th 2017, 11:54 |
steinkel |
(string)$response->getBody() |
# |
Jul 5th 2017, 11:53 |
cleptric |
Ok, both the request and reponse `getBody()` returns a stream |
# |
Jul 5th 2017, 11:52 |
neon1024 |
So I wanted to check if I was getting an error string back to tell me more about why I’m getting a 400 |
# |
Jul 5th 2017, 11:52 |
neon1024 |
I thought it might be this, https://ecosystem.atlassian.net/browse/ACJIRA-1015 |
# |
Jul 5th 2017, 11:52 |
neon1024 |
The response from `\Cake\Http\Client::post` |
# |
Jul 5th 2017, 11:51 |
cleptric |
Wait, request or response? |
# |
Jul 5th 2017, 11:51 |
neon1024 |
Hm, okay, thanks @cleptric I guess the response is actually empty then! |
# |
Jul 5th 2017, 11:50 |
cleptric |
@neon1024 yep |
# |
Jul 5th 2017, 11:50 |
ldsign |
Hi. Do you know, how to use a custom helper in a core-viewclass? E.g. use ExtendedHtmlHelper in JsonView? |
# |
Jul 5th 2017, 11:50 |
neon1024 |
`$response->getBody()->getContents()` ? |
# |
Jul 5th 2017, 11:49 |
neon1024 |
When I try and see the content of an api request which is giving me a 400, I get steam php memory. How do I see the body content? |
# |
Jul 5th 2017, 11:46 |
juststeveking |
I know x) having one of those days |
# |
Jul 5th 2017, 11:45 |
cleptric |
No problem at all :slightly_smiling_face: Casting objects is more PHP then CakePHP ^^ |