# |
Mar 5th 2018, 23:27 |
ricksaccous |
File uploaded https://cakesf.slack.com/files/U8LQ47EPR/F9K3W2M37/appcontroller_php.php / https://slack-files.com/T053DPNCM-F9K3W2M37-ed9cf83a5b |
# |
Mar 5th 2018, 23:26 |
ricksaccous |
and I stopped setting the viewClass in beforeFilter... it seems that |
# |
Mar 5th 2018, 23:26 |
ricksaccous |
I removed $this->RequestHandler->renderAs($this, 'pdf', ['attachment' => 'filename.pdf']); this line |
# |
Mar 5th 2018, 23:26 |
ricksaccous |
I kind of sort of got it working |
# |
Mar 5th 2018, 23:09 |
ricksaccous |
so yeah, order matters, heh |
# |
Mar 5th 2018, 23:09 |
ricksaccous |
when I request .pdf |
# |
Mar 5th 2018, 23:09 |
ricksaccous |
the viewclass for the plugin actually loads now |
# |
Mar 5th 2018, 23:09 |
ricksaccous |
it did fix something though |
# |
Mar 5th 2018, 23:08 |
ricksaccous |
nah that didn't fix the path |
# |
Mar 5th 2018, 23:06 |
ricksaccous |
going to try it first before i test it outside the plugin |
# |
Mar 5th 2018, 23:06 |
savant |
did it? |
# |
Mar 5th 2018, 23:06 |
ricksaccous |
sheeeeeeeeeet |
# |
Mar 5th 2018, 23:06 |
ricksaccous |
if a plugin depends on another you'd have to loa.... |
# |
Mar 5th 2018, 23:06 |
ricksaccous |
would order of plugins matter? |
# |
Mar 5th 2018, 23:05 |
ricksaccous |
wait |
# |
Mar 5th 2018, 23:02 |
ricksaccous |
but yeah it's having problems here it seems.... not sure what's triggering it |
# |
Mar 5th 2018, 23:01 |
ricksaccous |
I think I'll test it outside the plugin and see if it works and come back maybe |
# |
Mar 5th 2018, 23:01 |
ricksaccous |
CakePdf plugin* |
# |
Mar 5th 2018, 23:01 |
ricksaccous |
my own plugin |
# |
Mar 5th 2018, 23:01 |
ricksaccous |
i don't think so but what i am doing is trying to use the CakePdf from within a plugin |
# |
Mar 5th 2018, 23:01 |
savant |
thats interesting, are you changing your search paths somewhere somehow? |
# |
Mar 5th 2018, 23:00 |
ricksaccous |
File uploaded https://cakesf.slack.com/files/U8LQ47EPR/F9KQXUW3Y/-.txt / https://slack-files.com/T053DPNCM-F9KQXUW3Y-c9f9c6b1d6 |
# |
Mar 5th 2018, 22:59 |
ricksaccous |
so I think I've narrowed the problem somewhat, it's looking for a template within a plugin, but it is omitting the Controller name from the template it's looking for |
# |
Mar 5th 2018, 22:50 |
savant |
https://newrelic.com/why-new-relic/customers <-- list of their customers |
# |
Mar 5th 2018, 22:49 |
savant |
I personally dont have any issues with that |
# |
Mar 5th 2018, 22:49 |
savant |
yeah, so? |
# |
Mar 5th 2018, 22:49 |
meder |
.. new relic that is |
# |
Mar 5th 2018, 22:49 |
meder |
they have some sort of disclaimer |
# |
Mar 5th 2018, 22:49 |
savant |
read my app code? |
# |
Mar 5th 2018, 22:47 |
meder |
savant: really? mm. doesnt new relic read your app code? |
# |
Mar 5th 2018, 22:47 |
meder |
would removing sql_mode=only_full_group_by not be the cake way? i don't have any aggregates and i want to group by a specific table column |
# |
Mar 5th 2018, 22:40 |
ricksaccous |
yeah I have the same problem as this dude https://stackoverflow.com/questions/36555718/cakephp3-cakepdf-plugin-not-rendering-pdf-view?rq=1 |
# |
Mar 5th 2018, 22:17 |
birdy247 |
@admad on it first thing tomorrow :slightly_smiling_face: |
# |
Mar 5th 2018, 22:15 |
gsitex |
thank you @savant :+1: |
# |
Mar 5th 2018, 22:08 |
ricksaccous |
I'm guessing this means the class isn't loading, but i am getting a pdf, a broken one |
# |
Mar 5th 2018, 22:07 |
ricksaccous |
I put a debug in the constructor of the CakePdf class and an exit after |
# |
Mar 5th 2018, 22:07 |
ricksaccous |
i still don't get any debug code |
# |
Mar 5th 2018, 22:07 |
ricksaccous |
"works" |
# |
Mar 5th 2018, 22:07 |
ricksaccous |
if i copy it out of the pdf folder and into /Templates/Orders/ in the plugin it works |
# |
Mar 5th 2018, 22:06 |
savant |
where is it looking |
# |
Mar 5th 2018, 22:06 |
ricksaccous |
even though the documentation says it should be looking there |