Log message #4184870

# At Username Text
# Apr 27th 2019, 23:20 noel but the login system there is broken and the certification available is for Cake 2.x
# Apr 27th 2019, 23:20 noel I tried this: https://my.cakephp.org
# Apr 27th 2019, 23:20 noel Hi guys. I’m struggling to get help with Cake 3.x. I’ve posted 4 questions on Stackoverflow and on here but there are no answers. How can I get help with these questions?
# Apr 27th 2019, 20:54 admad @hollistergraham123 it's MIT licensed code, you can do whatever the fuck you want with it :slightly_smiling_face:
# Apr 27th 2019, 20:07 hollistergraham123 @admad Can I extend your JWT plugin and override your getUser method?
# Apr 27th 2019, 19:59 maymeow repository function is registered like this ````/** * Repository */ if (!function_exists('repository')) { function repository($repository) { return new $repository(); } } ```
# Apr 27th 2019, 19:58 maymeow Trying to move business logic outside controller im thinking about loading repositories like this ```repository(NotesRepository::class)->add($this->request->getData(), $this->Auth->user('id'))``` what do you think?
# Apr 27th 2019, 15:27 bgrinter Thanks - that sorted it
# Apr 27th 2019, 14:13 dereuromark bgrinter: make sure your autoloader is configured properly and the classes exist.
# Apr 27th 2019, 14:13 dereuromark dont overthink it. just do it :slightly_smiling_face:
# Apr 27th 2019, 14:01 asdfgh anyone?
# Apr 27th 2019, 13:39 asdfgh do you organize the js code in this way?
# Apr 27th 2019, 13:39 asdfgh guys is it correct to put the js of a view inside webroot/js/:controller/:action ?
# Apr 27th 2019, 13:32 asdfgh webroot/js/agents/profile.js <--- in this way for example?
# Apr 27th 2019, 13:32 asdfgh dereuromark still there? i would ask how you organize the js code of the view aht the moment i have Agents controller and Template/Agents/{views} so how should i organize the js of the view
# Apr 27th 2019, 12:27 slackebot 'App\Application' not found in /Applications/MAMP/htdocs/blog/webroot/index.php:37 Stack trace: #0 {main} thrown in /Applications/MAMP/htdocs/blog/webroot/index.php on line 37`
# Apr 27th 2019, 12:27 bgrinter Feeling a bit dumb ATM. I have a cakePHP 2.x app to migrate to v3.0. So I started with the really simply 'blog' tutorial from CakePHP 2 I downloaded the upgrade tool from https://github.com/dereuromark/upgrade Ran the commands `bin/cake upgrade all [myapp] bin/cake upgrade skeleton [myapp]` I updated composer to cakePHP v3.7.0 and updated. So far, so good I try to access the app and I get ` PHP Fatal error: Uncaught Error: Class
# Apr 27th 2019, 10:17 asdfgh i will follow the sam eorganization
# Apr 27th 2019, 10:17 asdfgh dereuromark, i see you "anchor" for js and css https://github.com/dereuromark/cakephp-sandbox/tree/master/webroot/css/anchor https://github.com/dereuromark/cakephp-sandbox/tree/master/webroot/js/anchor
# Apr 27th 2019, 10:11 dereuromark asdfgh: check how the sandbox app for example does things, including asset compress
# Apr 27th 2019, 10:10 dereuromark or u use the shim plugin Sesssion helper^^
# Apr 27th 2019, 10:10 dereuromark @om.axisweb view->getRequest()->getSession() or sth
# Apr 27th 2019, 09:57 asdfgh or do you simply create a webroot/vendor/ where you put all the things?
# Apr 27th 2019, 09:57 asdfgh just to organize it better?
# Apr 27th 2019, 09:57 asdfgh guys pardon one question when you download a js library that has .js files and .css files how you manage them in webroot ? i mean, the official doc says that when need to use webroot/js/ and webroot/css folders, so what do you do? do you create something like: webroot/js/library_name/main.js and webroot/css/library_name/main.css ?
# Apr 27th 2019, 09:24 welo.lamacchia I have two tables: Leads and Fields, i want to save associated Fields.joinData with this array but when i call Leads->newEntity($data, ['associated' => 'Fields._joinData') i get the last row of array repeated 4 times... Anyone can help me ?
# Apr 27th 2019, 09:15 om.axisweb how to get session value in helper ?
# Apr 27th 2019, 07:08 admad For anyone trying out Cake 4 ^
# Apr 27th 2019, 07:08 admad https://gist.github.com/ADmad/40455bdbdd4021d9901ea315cdee9226
# Apr 26th 2019, 20:37 itmpls is there a way to apply a conditional to '->add' for validation for only when it's present, without relying on notEmpty methods?
# Apr 26th 2019, 18:38 ricksaccous and see if it works
# Apr 26th 2019, 18:38 ricksaccous i'd test it without using the finder
# Apr 26th 2019, 18:38 ricksaccous seems strange sortWhitelist doesn't work
# Apr 26th 2019, 18:37 ricksaccous oh i see
# Apr 26th 2019, 18:24 jnguyen I had to check to be sure
# Apr 26th 2019, 18:24 jnguyen the finder is using a contain
# Apr 26th 2019, 18:24 jnguyen sorry the assocations were already defined lol
# Apr 26th 2019, 18:23 jnguyen ah you know what I lied
# Apr 26th 2019, 18:21 ricksaccous is the association that hard to define without a finder?
# Apr 26th 2019, 18:21 ricksaccous i've gotten it wrong a couple times
# Apr 26th 2019, 18:21 ricksaccous also make sure you have sortWhitelist capitalized correctly and everything