Log message #4115171

# At Username Text
# Feb 6th 2018, 22:49 dereuromark sure
# Feb 6th 2018, 22:48 saeideng https://github.com/dereuromark/cakephp-sandbox/tree/3.0/plugins/Sandbox
# Feb 6th 2018, 22:48 saeideng do you use middleware for this example ?
# Feb 6th 2018, 22:46 dereuromark feel free to PR sth
# Feb 6th 2018, 22:46 dereuromark i never used that
# Feb 6th 2018, 22:44 saeideng all errors are for me , not for your sandbox :)
# Feb 6th 2018, 22:43 saeideng `$this->redirect(['_name' => 'z']);` / `return $this->redirect(['_name' => 'z']);`
# Feb 6th 2018, 22:43 saeideng can you put en example with `_name` to your sandbox ?
# Feb 6th 2018, 22:39 saeideng :face_with_raised_eyebrow:
# Feb 6th 2018, 22:37 dereuromark should always return. indicates sth with middleware approach and how dispatching might work?
# Feb 6th 2018, 22:36 saeideng :@
# Feb 6th 2018, 22:36 saeideng why that works for you and sandbox ? :|
# Feb 6th 2018, 22:35 saeideng `$this->redirect(..` works ( without `return`)
# Feb 6th 2018, 22:35 saeideng for me redirect with `return` not works
# Feb 6th 2018, 22:34 saeideng https://github.com/dereuromark/cakephp-sandbox/blob/3.0/plugins/Sandbox/src/Controller/AjaxExamplesController.php#L211
# Feb 6th 2018, 22:34 dereuromark something worth documenting?
# Feb 6th 2018, 22:33 saeideng ;P
# Feb 6th 2018, 22:33 saeideng stupid error
# Feb 6th 2018, 22:31 saeideng i found
# Feb 6th 2018, 22:24 saeideng ``` $this->loadComponent('RequestHandler'); $action=$this->request->getParam('action'); if(in_array($action,['payment'])){ $this->loadComponent('Ajax.Ajax',[ 'flashKey' => 'Flash.payment']); } ```
# Feb 6th 2018, 22:21 saeideng Ajax on the beforeFilter
# Feb 6th 2018, 22:21 saeideng RequestHandler enabled on appcontroller::initialize()
# Feb 6th 2018, 22:19 dereuromark check how the sandbox works
# Feb 6th 2018, 22:19 dereuromark the order of components could matter, e.g. RequestHandler vs Ajax
# Feb 6th 2018, 22:15 saeideng even when I create it , it not works
# Feb 6th 2018, 22:11 saeideng I setup all config like http://sandbox.dereuromark.de/sandbox/ajax-examples/redirecting-prevented
# Feb 6th 2018, 22:09 saeideng also looks redirect on this plugin not works by `$this->redirect(['_name' => 'z']);`
# Feb 6th 2018, 22:07 saeideng I receive `Template file "Y/json/index.ctp" is missing.`
# Feb 6th 2018, 22:06 saeideng ``` public function index(){ return $this->redirect(['controller' => 'Y']); } ```
# Feb 6th 2018, 22:05 saeideng I am on `X` controller/action
# Feb 6th 2018, 22:04 saeideng a question about cakephp-ajax plugin
# Feb 6th 2018, 22:04 saeideng hi
# Feb 6th 2018, 20:38 dereuromark also ssh keys not synced etc, so quite a few things I remember used to work last time
# Feb 6th 2018, 20:38 dereuromark the main issue is that composer.phar conflict, that and the ext stuff
# Feb 6th 2018, 20:37 dereuromark I had to run a lot of manual commands, but then it seems to work
# Feb 6th 2018, 20:37 dereuromark they must have
# Feb 6th 2018, 20:36 birdy247 all ok, so not sure if things have changed since then?
# Feb 6th 2018, 20:36 birdy247 We span up a new instance about 4 weeks ago
# Feb 6th 2018, 20:36 birdy247 @dereuromark did you fix your cakebox issue?
# Feb 6th 2018, 20:34 dereuromark depending on the data, some extra pivot table holding either denormalized data or just keys and order to paginate on can hel
# Feb 6th 2018, 20:31 dereuromark then you shouldnt paginate them either.