# |
Jun 9th 2019, 09:14 |
ra7bi |
im wondering can i install the plugin without composer ? like clone it from github to vendor folder only |
# |
Jun 9th 2019, 09:13 |
challgren |
Maybe clear your vendor folder and rerun composer |
# |
Jun 9th 2019, 09:13 |
ra7bi |
@challgren sorry i was busy , i think i've a problem with my development PC , i install it in other pc and everythings just works fine |
# |
Jun 9th 2019, 09:12 |
challgren |
Any luck @ra7bi |
# |
Jun 9th 2019, 08:38 |
challgren |
Could be the config vars are not set |
# |
Jun 9th 2019, 08:37 |
challgren |
Can you look in your logs folder to see if theres anything meaningful there |
# |
Jun 9th 2019, 08:37 |
ra7bi |
so i cant debug it |
# |
Jun 9th 2019, 08:37 |
ra7bi |
the main problem when i put `$this->addPlugin('CakePdf', ['bootstrap' => true]);` in `application.php` i got blank screen |
# |
Jun 9th 2019, 08:36 |
challgren |
Im also using CakePHP 3.8.0-RC2 but shouldn’t be too diff from 3.6 |
# |
Jun 9th 2019, 08:33 |
challgren |
If I want to force a pdf for a non pdf extension I add the following line in the controller `$this->viewBuilder()->setClassName('CakePdf.Pdf');` |
# |
Jun 9th 2019, 08:31 |
challgren |
When I want a pdf of the page I just add .pdf to the url and bam PDF generated |
# |
Jun 9th 2019, 08:31 |
slackebot |
<adithya> |
# |
Jun 9th 2019, 08:30 |
adithya |
doesn't seem to be working, just asking from the redirect url i figured that https://mywebsite/hybrid-auth/endpoint is the one that i have to add to my fb app |
# |
Jun 9th 2019, 08:30 |
challgren |
In routes.php I have `$routes->setExtensions(['json', 'pdf']);` |
# |
Jun 9th 2019, 08:29 |
challgren |
In my application.php bootstrap I have `$this->addPlugin('CakePdf', ['bootstrap' => true]);` |
# |
Jun 9th 2019, 08:25 |
ra7bi |
i tried also to load the plugin from `application.php` but after i loaded i got blank white page :( |
# |
Jun 9th 2019, 08:11 |
ra7bi |
3.6.11 |
# |
Jun 9th 2019, 08:09 |
challgren |
And cakepdf |
# |
Jun 9th 2019, 08:09 |
challgren |
What Cake version you using? |
# |
Jun 9th 2019, 08:09 |
ra7bi |
Sure , Thanks |
# |
Jun 9th 2019, 08:08 |
challgren |
Like 15 minutes and I'll be back in my office |
# |
Jun 9th 2019, 08:07 |
challgren |
Stand by I'm on mobile |
# |
Jun 9th 2019, 08:06 |
ra7bi |
i got an error ` View class "CakePdf.pdf" is missing ` |
# |
Jun 9th 2019, 08:05 |
ra7bi |
maybe i can have idea how you make it work |
# |
Jun 9th 2019, 08:05 |
ra7bi |
@challgren Can u show me your controller |
# |
Jun 9th 2019, 08:04 |
challgren |
Try putting it in your app.php, Im not really sure if that works in bootstrap |
# |
Jun 9th 2019, 08:03 |
ra7bi |
i've the config in bootstrap.php after `Plugin:::load` |
# |
Jun 9th 2019, 08:03 |
challgren |
This is mine but I use WkHtmlToPdf |
# |
Jun 9th 2019, 08:03 |
challgren |
@ra7bi Do you have the config in your app.php? |
# |
Jun 9th 2019, 08:02 |
ra7bi |
any idea what could be the problem ? |
# |
Jun 9th 2019, 08:01 |
ra7bi |
i used composer to download the plugin and also composer to download Mpdf |
# |
Jun 9th 2019, 08:01 |
ra7bi |
Hey , im trying to use CakePdf plugin but when i render the view it shows blank pdf and when i download it and open it with notepad i can see html code |
# |
Jun 9th 2019, 04:45 |
challgren |
That should be it |
# |
Jun 9th 2019, 03:38 |
adithya |
I have added the redirect url on my FB app settings page in the valid oauth redirections section, is this it or am I missing something? |
# |
Jun 9th 2019, 00:50 |
challgren |
If you also need to extend/customize the Writer look at the DefaultWriter. |
# |
Jun 9th 2019, 00:48 |
JDD_Canada |
league/flysystem-webdav - there is my nextcloud adapter, sweeeeeeetttt |
# |
Jun 9th 2019, 00:48 |
JDD_Canada |
oh wow. Thanks man |
# |
Jun 9th 2019, 00:47 |
challgren |
https://github.com/FriendsOfCake/awesome-cakephp |
# |
Jun 9th 2019, 00:44 |
JDD_Canada |
I guess is hsould have checked foc first to see if they had a plugin |
# |
Jun 9th 2019, 00:44 |
JDD_Canada |
thanks, I'll try this |
# |
Jun 9th 2019, 00:44 |
JDD_Canada |
aaaah |