Log message #4116030

# At Username Text
# Feb 9th 2018, 16:15 neon1024 What are you coding in? Notepad?
# Feb 9th 2018, 16:15 loginews okay
# Feb 9th 2018, 16:15 neon1024 Use a search tool lol
# Feb 9th 2018, 16:14 neon1024 As either a file with a name containing ‘jquery’ or as code with a string of ‘jquery’
# Feb 9th 2018, 16:14 loginews under webroot? under plugins ?
# Feb 9th 2018, 16:14 neon1024 They’d be in your project
# Feb 9th 2018, 16:14 loginews I might have already installed them... how would I know ?
# Feb 9th 2018, 16:14 neon1024 Seems jQuery is on 3.x which is a bit higher than 1.9 :P
# Feb 9th 2018, 16:13 neon1024 https://unpkg.com/jquery@3.3.1/dist/jquery.js
# Feb 9th 2018, 16:13 neon1024 Which I rather like as the version is static and set in the code, but I still get the advantages of a cdn
# Feb 9th 2018, 16:13 neon1024 jQuery you can use a CDN like Google or unpkg, which allows you specify a version
# Feb 9th 2018, 16:13 neon1024 Well bootstrap you download from their website, so that’s pretty obvious
# Feb 9th 2018, 16:11 loginews I want to install friendsofcake/bootstrap-ui ... the doc on github says I should have cakephp 3.x bootstrap 3.x and jquery 1.9.... How do I know that I have the latter two? It's because somehow I managed to make bootstrap-ui work before but not today !
# Feb 9th 2018, 16:04 neon1024 Assuming it’s an entity
# Feb 9th 2018, 16:03 neon1024 I think the callback params should be explained in the docs. https://book.cakephp.org/3.0/en/core-libraries/collections.html#Cake\Collection\Collection::filter
# Feb 9th 2018, 15:13 kevin ah crap. duh. its an update, so its a put
# Feb 9th 2018, 15:12 kevin so if I debug $this->request->is(‘post’), its definitely false. but I dont know why
# Feb 9th 2018, 15:10 kevin I put some stops in my app and it looks like the app never even gets into the if($this->request->is(‘post’)) statement. I checked my form and it is going to the right end point and the method is post. Im not sure why it wouldn’t get into that if statemetn
# Feb 9th 2018, 15:09 kevin ok so I did find that I was doing entities incorrectly, and I believe I fixed that. I use the TableRegistry to pull the entity by ID, then I patch the entity with the request data
# Feb 9th 2018, 15:03 kevin should I not be using Entities to update items in my DB?
# Feb 9th 2018, 14:59 kevin I do have the Decklist entity in Model/Entity/Decklist.php
# Feb 9th 2018, 14:58 kevin It just reloads the /edit/1 page again with no messages
# Feb 9th 2018, 14:58 kevin I feel like im doing something super silly here. I cant get this form to save: https://pastebin.com/tiKnt9gR
# Feb 9th 2018, 14:40 jkarlmen because right now once activated i get the error "Users is not associated with ModelName" if i modify the plugin directly it works but that is generally frowned upon
# Feb 9th 2018, 14:39 jkarlmen I'd extend it but that would mostly apply it's properties to another model ... I'd like to mainly just apply table relations to the model the plugin is using
# Feb 9th 2018, 14:38 jkarlmen If so is there a way of adding to that plugin's model without modifying the vendor files?
# Feb 9th 2018, 14:38 jkarlmen so yet another question. Is it safe to assume that once loaded, the model of a plugin supersedes the model of a similarly name model in the app controller?
# Feb 9th 2018, 14:36 dereuromark sugitime: I only had this when importing e.g. from csv, then I had to manually str_replace them back from \r to "\r".
# Feb 9th 2018, 14:36 kevin it 100% does
# Feb 9th 2018, 14:36 kevin exactly
# Feb 9th 2018, 14:34 admad Then your data itself has \r\n as strings instead of actual new lines
# Feb 9th 2018, 14:33 kevin I changed it to a text area and its still showing \r\n in the text area
# Feb 9th 2018, 14:31 admad A textarea would show new lines as entered.
# Feb 9th 2018, 14:29 kevin is there any way to make the form do that?
# Feb 9th 2018, 14:29 kevin I have a form im working on; its an edit form. it one of the fields is $widget[0][‘details’]. this field has breaklines in the form of \r\n’s. when I $this->Form->create($widget), then $this->Form->control(‘details’), the form creates a textbox with a value of “this widget is used for stuff. stuff like\r\nfixing things\r\nbreaking things\r\ntesttest”. I’d prefer it actually parse the \r\n’s into breaklines.
# Feb 9th 2018, 14:26 neon1024 I think 2 years is pretty safe :slightly_smiling_face:
# Feb 9th 2018, 14:26 neon1024 https://github.com/cakephp/cakephp/blame/8ca5054ad237650dec85bc69377cb64a95f59f8f/src/Validation/Validator.php#L1594
# Feb 9th 2018, 14:26 admad You mean `@since`, sadly we weren't too particular about adding that tag
# Feb 9th 2018, 14:25 neon1024 The code doesn’t have an `@from` docblock
# Feb 9th 2018, 14:25 neon1024 I’d like to add the isInteger validation rule, but my minimum version of the plugin is 3.4.0
# Feb 9th 2018, 14:24 neon1024 How can I find out when a method was added?