Log message #4184897

# At Username Text
# Apr 29th 2019, 10:45 noel I’m experienced with CakePHP 2.x. New to CakePHP 3.x
# Apr 29th 2019, 10:40 neon1024 @noel What is is that you’re actually trying to achieve? As it sounds like either you’re trying to shoe horn something in somewhere it’s not supposed to go, you’re a beginner with CakePHP, or you’re picking up someone elses code
# Apr 29th 2019, 10:35 neon1024 You do that the other way around
# Apr 29th 2019, 10:35 neon1024 You don’t set layout variables in a template
# Apr 29th 2019, 10:35 neon1024 You can’t.
# Apr 29th 2019, 10:35 neon1024 Your second question is basic
# Apr 29th 2019, 10:34 neon1024 Twig isn’t really Cake related
# Apr 29th 2019, 10:29 noel Can anyone help with these? https://stackoverflow.com/questions/55682190/how-to-get-the-output-of-tostring-when-using-debug-mode-for-twig https://stackoverflow.com/questions/55681973/how-can-one-set-layout-variables-in-cake-widget-view-or-template
# Apr 29th 2019, 10:09 welo.lamacchia mmm i saw that send() method returns headers, subject and body of mail but not status..
# Apr 29th 2019, 09:57 neon1024 I think that the `send()` method returns that
# Apr 29th 2019, 09:52 welo.lamacchia good morning, are there a way to know if email was send from MailerAwareTrait ??
# Apr 29th 2019, 07:51 neon1024 Hey all :wave:
# Apr 28th 2019, 18:44 waspinator `example.com/users/index.json?page=2` works
# Apr 28th 2019, 18:43 waspinator sorry, I missed the `sort, direction, limit, and page` of the docs
# Apr 28th 2019, 18:41 dereuromark whats wrong with pagination?
# Apr 28th 2019, 18:37 waspinator crud plugin specifically
# Apr 28th 2019, 18:34 waspinator for example if I access `example.com/users/index.json`, how would I select the second page?
# Apr 28th 2019, 18:33 waspinator is there a convention on page selection?
# Apr 28th 2019, 10:14 neon1024 Which might yeild some results, as your question was at 00:20 my local time so I wouldnt have been online ;)
# Apr 28th 2019, 10:13 neon1024 @noel Sorry to hear that. This channel is the best place to get support in my opinion, but there is also the support forum https://discourse.cakephp.org/
# Apr 28th 2019, 10:12 neon1024 Morning all
# Apr 28th 2019, 03:18 COOurb $q->select("num", "date" => max("date"))?
# Apr 28th 2019, 03:18 COOurb hi, how can I get Max() value with query builder?
# Apr 27th 2019, 23:27 kiwi_78 and also used in shells
# Apr 27th 2019, 23:27 kiwi_78 or a long list of parameters (that happens to be proxies) used in multiple places in controllers
# Apr 27th 2019, 23:26 kiwi_78 Hi, I have a long list of proxies and should that be done in config or src folder?
# 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