Log message #4115150

# At Username Text
# 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.
# Feb 6th 2018, 20:30 xinobi dereuromark if you mean related = associated then well It's not possible... I can't associate them
# Feb 6th 2018, 20:24 dereuromark yeah, and there is your main problem.
# Feb 6th 2018, 20:23 xinobi dereuromark the tables are not related with each other ;)
# Feb 6th 2018, 20:23 dereuromark everything else will spiral out of control after more records come in
# Feb 6th 2018, 20:23 dereuromark sounds more like a data intergrety problem. you should first have the results in the right tables (related to each other) if you want to commonly paginate them.
# Feb 6th 2018, 20:21 xinobi I've tried ConnectionManager query() but not compatible with paginate...
# Feb 6th 2018, 20:21 xinobi Sorry to come with the same question... Hi, I need to fetch data from multiple tables that aren't related with each other. However, the columns I need to extract data from appear to have the same name and type! At the end I need to order everything by created date and paginate the results. Is this possible with cakephp?
# Feb 6th 2018, 18:40 dereuromark Jep, that's sure one way to make things clear.
# Feb 6th 2018, 18:38 ahmad i think adding `.json` in end of url may just do it
# Feb 6th 2018, 18:38 ahmad *shrug*
# Feb 6th 2018, 18:35 dereuromark so maybe the code uses only the last one by default since some change?
# Feb 6th 2018, 18:32 ahmad but having `Accept: application/json` only requires `View/blahblah/json/index.ctp`
# Feb 6th 2018, 18:32 ahmad so having `Accept: application/json, text/html` would complain about not having a view in `View/blahblah/index.ctp`
# Feb 6th 2018, 18:31 ahmad wow it's amazing
# Feb 6th 2018, 18:29 dereuromark in 2.x I had the same issue, it was some regression somewhere in the 2.4+ where the header must be sent as well otherwise it wont fallback as expected.
# Feb 6th 2018, 18:27 ahmad the issue is insominia must spit out additional "Accepts"
# Feb 6th 2018, 18:27 ahmad ha
# Feb 6th 2018, 18:27 saeideng I have simillar problem with cakephp-ajax plugin :$
# Feb 6th 2018, 18:26 ahmad @saeideng well if they have `Accept: application/json`
# Feb 6th 2018, 18:26 ahmad this is 2.x btw