# |
Jul 15th 2017, 05:16 |
aro |
score |
# |
Jul 15th 2017, 05:16 |
aro |
but thats okay |
# |
Jul 15th 2017, 05:16 |
aro |
its still looking in the Admin/Products/json folder for the list.ctp |
# |
Jul 15th 2017, 05:15 |
aro |
oh there we go |
# |
Jul 15th 2017, 05:14 |
aro |
the content length of my response is 0 |
# |
Jul 15th 2017, 05:14 |
aro |
now i get no response, well i get a null response |
# |
Jul 15th 2017, 05:14 |
aro |
okay |
# |
Jul 15th 2017, 05:14 |
admad |
set _serialize to false |
# |
Jul 15th 2017, 05:12 |
aro |
even this fails: ``` $this->viewBuilder()->setLayout('ajax')->setTemplate('list');``` |
# |
Jul 15th 2017, 05:09 |
aro |
which doesnt seem to happen at all. cake just sends an echo of json_encode |
# |
Jul 15th 2017, 05:09 |
aro |
it doesnt matter about those anymore, i just want to be able to render the template file |
# |
Jul 15th 2017, 05:09 |
admad |
cakephp doesn't reorder the keys, i bet it's the JS code which consumes the json does |
# |
Jul 15th 2017, 05:07 |
aro |
thats what i am posting to |
# |
Jul 15th 2017, 05:07 |
aro |
https://nuarx.vengeance.io/admin/products/list |
# |
Jul 15th 2017, 05:07 |
aro |
Heres the thing. When I use it without the .json extension, it tries to render it as a json request, when I have the .json there, nginx throws a 404 |
# |
Jul 15th 2017, 05:06 |
admad |
show the rendered .json url |
# |
Jul 15th 2017, 05:06 |
aro |
it made no difference |
# |
Jul 15th 2017, 05:05 |
admad |
and? |
# |
Jul 15th 2017, 05:05 |
aro |
i tried that |
# |
Jul 15th 2017, 05:05 |
admad |
try using JSON_FORCE_OBJECT option |
# |
Jul 15th 2017, 05:04 |
aro |
how do you turn it off in RH? |
# |
Jul 15th 2017, 05:02 |
savant |
what isnt on |
# |
Jul 15th 2017, 05:01 |
aro |
it isnt on |
# |
Jul 15th 2017, 05:00 |
savant |
or remap the class |
# |
Jul 15th 2017, 05:00 |
savant |
so turn off json in RequestHandler |
# |
Jul 15th 2017, 05:00 |
aro |
i just want to make it use AppView and not JsonView |
# |
Jul 15th 2017, 04:57 |
aro |
to return back for my form to use |
# |
Jul 15th 2017, 04:57 |
aro |
like html |
# |
Jul 15th 2017, 04:57 |
aro |
i want to render a view |
# |
Jul 15th 2017, 04:57 |
savant |
and then set the response body |
# |
Jul 15th 2017, 04:57 |
savant |
you can json_encode |
# |
Jul 15th 2017, 04:57 |
aro |
id much rather it didnt |
# |
Jul 15th 2017, 04:57 |
aro |
from loading? |
# |
Jul 15th 2017, 04:57 |
aro |
is there a way to prevent jsonview |
# |
Jul 15th 2017, 04:54 |
savant |
iirc all we do is json_encode at the end of the day in JsonView |
# |
Jul 15th 2017, 04:54 |
savant |
weird |
# |
Jul 15th 2017, 04:44 |
aro |
see how it preserves the order? thats after running it thru json encode |
# |
Jul 15th 2017, 04:44 |
aro |
damn it slack |
# |
Jul 15th 2017, 04:44 |
aro |
shoot |
# |
Jul 15th 2017, 04:44 |
slackebot |
"Reactive Broadband Support Services", "11430115": "SCG 3G\/4G Failover Services - Wired Ethernet Option with 100MB", "14980322": "Secure Cloud Gateway (SCG)", "16200160": "SecureCompliance", "5357180": "SecureCompliance Premium", "11042214": "SecureHIPAA", "4999387": "SecurePCI", "8233419": "SecurePCI Enhanced", "12399691": "SecurePCI Premium" } }``` |
# |
Jul 15th 2017, 04:44 |
aro |
```{ "products": { "8604451": "Cisco Meraki MX64w", "11929191": "Guest WiFi with WAP", "16289495": "Managed Security", "8265018": "PCI Compliance, WiFi \u0026 Firewall Services", "16598517": "PCI Portal", "8599719": "PCI Protect - Bronze", "8540716": "PCI Protect - Gold", "1975928": "PCI Protect - Silver", "2571398": "Professional On-Site Installation (Per Location)", |