Logs for #cakephp

Page 16 of 36,922, showing 100 records out of 3,692,143 total, starting on record 1,501, ending on 1,600

# At Username Text
# Jul 3rd 2021, 12:57 admad why the hell are you even checking request type in there currently? :)
# Jul 3rd 2021, 12:57 kevin.pfeifer :)
# Jul 3rd 2021, 12:57 kevin.pfeifer seems logical
# Jul 3rd 2021, 12:56 kevin.pfeifer :thinking_face:
# Jul 3rd 2021, 12:56 admad exactly, why should the finder need anything else from the request?
# Jul 3rd 2021, 12:55 kevin.pfeifer so then I don’t have the whole request object inside my finder and just use the params
# Jul 3rd 2021, 12:55 admad then use `$options['search']` in your finder to read the search args
# Jul 3rd 2021, 12:54 admad And the changes is pretty easy, all you have to do is `find('index', ['search' => $this->request->getQuery()])`
# Jul 3rd 2021, 12:53 kevin.pfeifer alright, then I will change that. thx for the info :bow:
# Jul 3rd 2021, 12:52 admad @kevin.pfeifer ORM should never know anything about the incoming request.
# Jul 3rd 2021, 09:32 kevin.pfeifer i was just trying to clean up my controller index function and thought this was fine ^^
# Jul 3rd 2021, 09:28 kevin.pfeifer so I shouldn't get the query args through the request object, instead I should pass them via the options.
# Jul 3rd 2021, 03:37 admad @kevin.pfeifer your code is bad given the fact that you are directly using the query instance inside it instead of passing the querystring args through finder options.
# Jul 2nd 2021, 21:57 kevin.pfeifer and yes my app has no authentication/authorization till now :)
# Jul 2nd 2021, 21:56 kevin.pfeifer I don't want to make it a competition but I think my custom finder doesn't look that much better :,)
# Jul 2nd 2021, 21:54 tyler.adam.lazenby btw yes I know I need to use authorization.
# Jul 2nd 2021, 21:53 tyler.adam.lazenby ```/** * Ajax Contact Search * @return \Cake\Http\Response|mixed|null */ public function searchContacts() { $this->Authorization->skipAuthorization(); $param = $this->request->getQuery('param'); $referrer = $this->request->referer(); $params = Router::getRouteCollection()->parse($referrer); $contact_list_id = $params['id']; // All Contacts
# Jul 2nd 2021, 21:53 slackebot2 $contacts = $this->Contacts->find(); $contacts = $contacts->where([ 'OR' => [ "CONCAT_WS(' ', first_name, last_name) LIKE" => $contacts->func()->concat(['%', $param, '%']), 'first_name LIKE' => $contacts->func()->concat(['%', $param, '%']), 'last_name LIKE' => $contacts->func()->concat(['%', $param, '%']), ], ])->orderAsc('first_name');
# Jul 2nd 2021, 21:53 slackebot2 $contacts = $this->Authorization->applyScope($contacts, 'index'); $contactToLists = $this->Contacts->ContactToLists->find() ->where(['contact_list_id' => $contact_list_id]); /** @var \App\Model\Entity\Contact $contact */ foreach ($contacts as $contact) { $contact->isPart = false; /** @var \App\Model\Entity\ContactToList $contactToList */ foreach ($contactToLists as
# Jul 2nd 2021, 21:53 slackebot2 ->withStringBody(json_encode($contacts)); } return $contacts; }```
# Jul 2nd 2021, 21:53 slackebot2 $contactToList) { if ($contactToList->contact_id === $contact->id) { $contact->isPart = true; break; } } } if ($this->request->is('ajax')) { $this->response = $this->response->withDisabledCache(); return $this->response ->withType('application/json')
# Jul 2nd 2021, 21:52 kevin.pfeifer but basically that should be the base how you filter/search in php
# Jul 2nd 2021, 21:52 tyler.adam.lazenby I mean... let me just show you my nonesense
# Jul 2nd 2021, 21:52 kevin.pfeifer I too have to refactor my search to that plugin because its pretty awesome
# Jul 2nd 2021, 21:52 tyler.adam.lazenby Thank you kevin
# Jul 2nd 2021, 21:51 tyler.adam.lazenby I didn't even know this existed
# Jul 2nd 2021, 21:15 kevin.pfeifer custom API Point based on https://github.com/FriendsOfCake/search ?
# Jul 2nd 2021, 19:41 tyler.adam.lazenby what have you found is the best live search js component for cakephp?
# Jul 2nd 2021, 18:59 kevin.pfeifer as a native german speaker I can definitely NOT recommend using it in any matter :,)
# Jul 2nd 2021, 16:49 dereuromark Is klingonian already out again these days?^^
# Jul 2nd 2021, 16:44 tyler.adam.lazenby speak? What is this speaking you .... never mind
# Jul 2nd 2021, 16:17 admad What do you wanna do instead, speak Cherokee? :P
# Jul 2nd 2021, 15:52 tyler.adam.lazenby The fact that I let the program do that and not question whether that was correct or not is a testament to that.
# Jul 2nd 2021, 15:51 tyler.adam.lazenby I am merican and we tend to let others influence how we speak way too much to have really any say
# Jul 2nd 2021, 15:39 staccato123 I'm sure we used to be cooler...
# Jul 2nd 2021, 15:37 staccato123 bitte sehr!
# Jul 2nd 2021, 15:34 dereuromark Every language steals :) We Germans a lot from English because it's "cool"^^
# Jul 2nd 2021, 15:33 staccato123 even with our larcenous approach to vocabulary
# Jul 2nd 2021, 15:33 staccato123 Agree with @dereuromark, "metum" is not a word in English
# Jul 2nd 2021, 15:32 staccato123 (I have never used it in the sense of "boundary marker" :) )
# Jul 2nd 2021, 15:30 staccato123 (OED agrees "boundary marker")
# Jul 2nd 2021, 15:29 dereuromark @admad I would align this with symfony, doctrine inflectors to be consistent: meta <> metas.
# Jul 2nd 2021, 15:28 staccato123 Wiktionary says it can mean "boundary marker", but again the plural is metas or metae
# Jul 2nd 2021, 15:28 cnizzardini https://www.merriam-webster.com/dictionary/metum
# Jul 2nd 2021, 15:27 admad I simply add a rule to not inflect it :)
# Jul 2nd 2021, 15:27 staccato123 in which case the plural is metas
# Jul 2nd 2021, 15:27 staccato123 I am British. Meta as a noun is surely nearly always a shortening of something (e.g. "metahuman" in sci-fi)
# Jul 2nd 2021, 15:25 dereuromark So the Americans and British can sure chime in now :) confirm or deny any such claim now
# Jul 2nd 2021, 15:25 staccato123 Oh, I see
# Jul 2nd 2021, 15:24 dereuromark I mean what is written and linked there, from Wiktionary ( https://en.wiktionary.org/wiki/metas#English ). So that is the noun we are talking here in terms of inflection.
# Jul 2nd 2021, 15:23 staccato123 assuming you mean meta- the prefix, I'm not sure it has a plural
# Jul 2nd 2021, 15:22 staccato123 metum is not the plural of meta, surely?
# Jul 2nd 2021, 15:22 dereuromark You could make a PR for 4.3 here
# Jul 2nd 2021, 15:22 dereuromark meta <> metas (metum doesnt exist)
# Jul 2nd 2021, 15:21 dereuromark Well sry to be a buzzkill, we might have to fix the inflector here though: https://github.com/laravel/framework/issues/26657#issuecomment-442610004
# Jul 2nd 2021, 15:10 tyler.adam.lazenby I have to say that I learned something about English grammar with the pluralization of things like meta to metum
# Jul 2nd 2021, 14:34 admad debugmail.io looks nice, it's free!
# Jul 2nd 2021, 14:17 steinkel btw, we've used debugmail.io as a 3rd party solution
# Jul 2nd 2021, 14:17 steinkel they have a docker container that "just works"
# Jul 2nd 2021, 14:16 steinkel totally, I used it as an imap local server for testing, use it as a last resort
# Jul 2nd 2021, 13:49 admad "enterprise" and "java" are not words I like to associate with stuff for local testing :P
# Jul 2nd 2021, 13:48 admad @steinkel Just skimmed it's about page but JAMES seems quite an overkill for a local SMTP mail trap :)
# Jul 2nd 2021, 11:52 kevin.pfeifer In my opinion the conventions described in https://book.cakephp.org/4/en/intro/conventions.html are not too complicated. Besides the fact, that only entity classes and foreign_key columns have a singular name, everything else is plural
# Jul 2nd 2021, 11:49 dereuromark Semantically it makes actually a lot of sense. Only technically, it is a bit troublesome in some cases maybe.
# Jul 2nd 2021, 11:49 dereuromark You could singularize it all, but I don't think the current way is a big deal.
# Jul 2nd 2021, 11:47 kevin.pfeifer no, why?
# Jul 2nd 2021, 11:44 noel Does anyone else think that the pluralisation thing that the ORM does is a REALLY BAD IDEA?
# Jul 2nd 2021, 07:51 steinkel @tyler.adam.lazenby in case mailhog does not work for you, try this https://james.apache.org/
# Jul 1st 2021, 22:46 khalil A simple dd of the request being sent is the following:
# Jul 1st 2021, 22:45 khalil Example of what I have is the following: ```<?= $this->Form->control('Attributes.value[]', ['type' => 'color', 'label' => false, 'class' => 'form-control']) ?>```
# Jul 1st 2021, 22:45 khalil I'm struggling with writing the template of a form that updates multiple fields at the same time
# Jul 1st 2021, 22:44 khalil Hello guys
# Jul 1st 2021, 19:30 kevin.pfeifer just noticed by chance that the giphy only works in slack :)
# Jul 1st 2021, 19:29 kevin.pfeifer and there is a bot connecting these 2
# Jul 1st 2021, 19:29 kevin.pfeifer there is a extra discord server you can join if you don't have slack
# Jul 1st 2021, 19:28 tyler.adam.lazenby haha are you connecting to slack via discrod?
# Jul 1st 2021, 19:13 tyler.adam.lazenby Well at least I know from risking a push to the dev server that it works
# Jul 1st 2021, 19:12 tyler.adam.lazenby frustration
# Jul 1st 2021, 19:11 kevin.pfeifer but you won't run into so many strange windows problems, thats for sure ,:)
# Jul 1st 2021, 19:10 kevin.pfeifer well if your not familiar with how a webserver/database/mailserver setup works in linux then you still have a lot of googleing to do ^^
# Jul 1st 2021, 19:06 tyler.adam.lazenby i just want it to work
# Jul 1st 2021, 19:06 kevin.pfeifer and I hope i don't stir up an linux diehards here arguing about arch or something like that ,:)
# Jul 1st 2021, 19:05 kevin.pfeifer Ubuntu or Mint is the go to distro for me
# Jul 1st 2021, 19:04 tyler.adam.lazenby it would be my first time using it that way, so which distrubutable would you reccomend?
# Jul 1st 2021, 19:03 tyler.adam.lazenby With this project I might just do that
# Jul 1st 2021, 19:03 kevin.pfeifer well then I would just install virtualbox and do everything inside a VM :,)
# Jul 1st 2021, 19:02 tyler.adam.lazenby I might need a break
# Jul 1st 2021, 19:02 tyler.adam.lazenby I am so frustrated with this. I am bout to lose my mind
# Jul 1st 2021, 19:01 tyler.adam.lazenby workstation 01
# Jul 1st 2021, 19:01 tyler.adam.lazenby I had the same thing happen to me at work
# Jul 1st 2021, 18:56 kevin.pfeifer well **** me, i have a whitespace in my user-path which seems to screw everything up so THANKS WINDOWS :clap:
# Jul 1st 2021, 18:54 tyler.adam.lazenby ok now I am getting SOMEWHERE
# Jul 1st 2021, 18:36 tyler.adam.lazenby no
# Jul 1st 2021, 18:36 tyler.adam.lazenby it says in the assertions that it sent but
# Jul 1st 2021, 18:36 tyler.adam.lazenby I don't get it... why is it still not showing up
# Jul 1st 2021, 18:33 tyler.adam.lazenby ok thank you
# Jul 1st 2021, 18:33 tyler.adam.lazenby ij
# Jul 1st 2021, 18:33 tyler.adam.lazenby ohhhh
# Jul 1st 2021, 18:33 admad It provides a webui at port 8025 for viewing the mails
# Jul 1st 2021, 18:31 tyler.adam.lazenby I am trying to figure that one out but I open it and ijust is a command line thing...