# |
Dec 18th 2017, 02:02 |
l1li4627 |
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ https://www.youtube.com/watch?v=--jYqzJErTI LRH IS LIVE NOW!! CALL 415-349-5666 #LRH EFNETxvvjwoovsb: nick337 frazr joop veve hekep gadams bigbluehat floreo aro RNwebdk sab hmic nobblywobbly Martin` r0kc4t orangey jschwartz tapout Werring nate ScottO_ meder_ Zir0h WyriHaximus arnis xvifr Sacro slackebot3 JelmerD m-takagi_______ godfath |
# |
Dec 18th 2017, 02:02 |
l1li4627 |
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ https://www.youtube.com/watch?v=--jYqzJErTI LRH IS LIVE NOW!! CALL 415-349-5666 #LRH EFNETsmcdcxxqug: barlas hmic sitedyno Alina-malina ScottO_ orangey kdump Martin` floreo slackebot3 RNwebdk DV8__ mglinski nick337 frazr r0kc4t TheRec nobblywobbly JelmerD WyriHaximus meder_ burzum2 joep |
# |
Dec 18th 2017, 02:01 |
l1li4627 |
▄▄▄▄▄▄▄▄▄▄▄▄▄▄ https://www.youtube.com/watch?v=--jYqzJErTI LRH IS LIVE NOW!! CALL 415-349-5666 #LRH EFNETubjbek: iqu sitedyno marlinc xvifr godfath3r ujjain Alina-malina juvenal hekep jschwartz RiPer joepferguson JelmerD slackebot3 orangey storkovo|away jantede r0kc4t Werring joop NeoThermic one_zero burzum2 hmic Sacro TheRec dakotairene wouter0100 m-takagi___ |
# |
Dec 18th 2017, 02:01 |
l1li4627 |
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ https://www.youtube.com/watch?v=--jYqzJErTI LRH IS LIVE NOW!! CALL 415-349-5666 #LRH EFNEThveohcvx: ujjain floreo burzum2 jschwartz juvenal TheRec [Batch] one_zero storkovo|away veve WyriHaximus wouter0100 nick337 orangey nobblywobbly joop spexi dakotairene r0kc4t iqu RiPer tapout nate Sacro jant |
# |
Dec 18th 2017, 01:49 |
saeideng |
I thinks I should `$this->request->session()->write('Flash.contact.url', [$url]);` :grinning: |
# |
Dec 18th 2017, 01:47 |
saeideng |
no |
# |
Dec 18th 2017, 01:46 |
saeideng |
https://github.com/dereuromark/cakephp-sandbox/blob/3.0/plugins/Sandbox/src/Controller/AjaxExamplesController.php |
# |
Dec 18th 2017, 01:46 |
saeideng |
no |
# |
Dec 18th 2017, 01:46 |
saeideng |
I check again |
# |
Dec 18th 2017, 01:42 |
dereuromark |
Strange - compare yours with the code of http://sandbox.dereuromark.de/sandbox/ajax-examples/redirecting-prevented - maybe you can spot the issue. Could also be the order of components etc. |
# |
Dec 18th 2017, 01:41 |
saeideng |
this plugin not works for me :) |
# |
Dec 18th 2017, 01:41 |
saeideng |
even with $this->loadComponent('RequestHandler'); |
# |
Dec 18th 2017, 01:40 |
saeideng |
just ``` if($error){ $this->request->session()->write('Flash.contact.error', [$mess]); }else{ $this->request->session()->write('Flash.contact.success', [$mess]); } } $this->set(compact('mess','error')); ``` works for me ( in other action/ unrelated to above codes) |
# |
Dec 18th 2017, 01:38 |
saeideng |
in ajax config |
# |
Dec 18th 2017, 01:38 |
saeideng |
even with adding ``` beforeSend: function(xhr) { xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); $('#example-target').html('...'); }, ``` |
# |
Dec 18th 2017, 01:37 |
saeideng |
even Plugin::load('Ajax', ['bootstrap' => true]); in bootstrap |
# |
Dec 18th 2017, 01:37 |
saeideng |
even with $this->set('_serialize', true); and $this->set('_serialize', false); in appcontroller |
# |
Dec 18th 2017, 01:36 |
saeideng |
even $this->loadComponent('Ajax.Ajax',[ 'flashKey' => 'FlashMessage']); in initialize |
# |
Dec 18th 2017, 01:35 |
saeideng |
if I no able to use $this->Flash->success('Yeah, that was a normal POST and redirect (PRG).'); |
# |
Dec 18th 2017, 01:34 |
saeideng |
Template file "Pages/json/index2.ctp" is missing. |
# |
Dec 18th 2017, 01:34 |
saeideng |
if I change 'action' => 'index']); in to 'action' => 'index2']); |
# |
Dec 18th 2017, 01:33 |
saeideng |
my code ``` if ($this->request->is('post')) { // Do sth like saving data if (!$this->request->is('ajax')) { $this->Flash->success('Yeah, that was a normal POST and redirect (PRG).'); } return $this->redirect(['action' => 'index']); } ``` |
# |
Dec 18th 2017, 01:32 |
saeideng |
error null content _message null |
# |
Dec 18th 2017, 01:32 |
saeideng |
but |
# |
Dec 18th 2017, 01:32 |
saeideng |
I know |
# |
Dec 18th 2017, 01:30 |
dereuromark |
there is no redirect in that case, it only returns you the URL |
# |
Dec 18th 2017, 01:21 |
saeideng |
I dont know why redirect not works for me on cakephp-ajax plugin |
# |
Dec 17th 2017, 22:29 |
joop |
probably because your query returns empty |
# |
Dec 17th 2017, 22:28 |
joop |
hello |
# |
Dec 17th 2017, 22:27 |
josexato |
sorry, this was a silly mistake, although the error message was missguiding :slightly_smiling_face: |
# |
Dec 17th 2017, 22:20 |
josexato |
I've found some information regarding to authorization, but adding $this->loadComponent('Auth'); did not help |
# |
Dec 17th 2017, 22:15 |
josexato |
{ "message": "Call to a member function find() on boolean", "url": "\/restaurants\/getall?term=Fus", "code": 500, "file": "\/var\/www\/html\/src\/Controller\/RestaurantsController.php", "line": 264 } |
# |
Dec 17th 2017, 22:15 |
josexato |
I am receiving this response |
# |
Dec 17th 2017, 22:14 |
josexato |
hello one question, can you please guide me where is my mistake during this autocomplete https://pastebin.com/VkQhb8Qt |
# |
Dec 17th 2017, 22:03 |
saeideng |
foreach() / patchentity() /saveMany() /and view /form |
# |
Dec 17th 2017, 21:44 |
joop |
saeideng what kind of custome codes is that? |
# |
Dec 17th 2017, 21:43 |
joop |
yoo |
# |
Dec 17th 2017, 21:12 |
saeideng |
evening |
# |
Dec 17th 2017, 21:12 |
saeideng |
custom codes finished :slightly_smiling_face: |
# |
Dec 17th 2017, 21:10 |
birdy247 |
evening |
# |
Dec 17th 2017, 20:44 |
joop |
and throw invalid arguments exception |