# |
Jul 15th 2017, 09:59 |
birdy247 |
I can see why |
# |
Jul 15th 2017, 09:58 |
savant |
whats the issue |
# |
Jul 15th 2017, 09:55 |
birdy247 |
I cant work out why |
# |
Jul 15th 2017, 09:54 |
savant |
ok? |
# |
Jul 15th 2017, 09:52 |
birdy247 |
the group finder is in my App's Articles Table |
# |
Jul 15th 2017, 09:51 |
birdy247 |
but I am running into issues with a query |
# |
Jul 15th 2017, 09:51 |
savant |
:thisisfine: |
# |
Jul 15th 2017, 09:51 |
savant |
thats fine |
# |
Jul 15th 2017, 09:51 |
birdy247 |
class ArticlesTable extends PluginArticlesTable |
# |
Jul 15th 2017, 09:51 |
birdy247 |
I have also made an ArticlesTable in my app |
# |
Jul 15th 2017, 09:51 |
birdy247 |
This has an Articles Table |
# |
Jul 15th 2017, 09:51 |
birdy247 |
I have an ArticlesManager plugin |
# |
Jul 15th 2017, 09:50 |
birdy247 |
Hey @savant, quick question |
# |
Jul 15th 2017, 09:46 |
birdy247 |
If a plugin Table and an App table share the same name, is that bad news? |
# |
Jul 15th 2017, 09:31 |
savant |
nah |
# |
Jul 15th 2017, 09:31 |
birdy247 |
Is it bad practive to write things like if ($entity->has_image) echo $this->...... |
# |
Jul 15th 2017, 08:29 |
birdy247 |
Morning |
# |
Jul 15th 2017, 05:50 |
savant |
oh bye |
# |
Jul 15th 2017, 05:50 |
savant |
hi |
# |
Jul 15th 2017, 05:25 |
Strelok |
Hey everyone |
# |
Jul 15th 2017, 05:16 |
aro |
and its in the right order! |
# |
Jul 15th 2017, 05:16 |
aro |
thanks |
# |
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 |