# |
Feb 11th 2018, 01:00 |
ricksaccous |
noooooo |
# |
Feb 11th 2018, 01:00 |
ricksaccous |
ugh why is it using autotables for categories |
# |
Feb 11th 2018, 00:56 |
ricksaccous |
$products = $this->Products->find('all')->contain(['Categories'])->where(['Categories.id' => $category->id]); |
# |
Feb 11th 2018, 00:56 |
ricksaccous |
nvm |
# |
Feb 11th 2018, 00:55 |
ricksaccous |
wait I think I know what I did |
# |
Feb 11th 2018, 00:55 |
ricksaccous |
the joins are not happening |
# |
Feb 11th 2018, 00:55 |
ricksaccous |
when I contain a HABTM model |
# |
Feb 10th 2018, 22:34 |
K4T |
any ideas, please? |
# |
Feb 10th 2018, 22:34 |
K4T |
in CakePHP 3.5 I have collection made from array. I am trying to use ->each method to unset some fields from each collection item. Unfortunatelly it looks like each is not modifing collection itself like it is mentioned in documentation. Here is the code: https://gist.github.com/K4T/8c0d271c9f6ee0bc030c90a6418a4d43 |
# |
Feb 10th 2018, 22:31 |
K4T |
hello |
# |
Feb 10th 2018, 21:49 |
jameg83 |
@admad thanks, that’s sorted it. The readme is a tad confusing as it states cakepdf expects to find “the binary in usr/bin/wkhtmltopdf”. Still I should have checked the cakepdf config file for the path. Your help is much appreciated. |
# |
Feb 10th 2018, 20:31 |
admad |
@jameg83 well then it's not surprising you get that error is cakepdf is tryingto use that path as a binary, configure it to use the path to the binary not the folder |
# |
Feb 10th 2018, 20:05 |
maymeow |
one ide.. if i have in app something what i want to add to database when application is installing or in production |
# |
Feb 10th 2018, 19:34 |
spencdev |
or a form that you use, and takes you to the other view? |
# |
Feb 10th 2018, 19:33 |
spencdev |
are you talking about like a live search that paginates? |
# |
Feb 10th 2018, 18:51 |
kitcat711 |
and then I relaod my form. Anyone with an example? |
# |
Feb 10th 2018, 18:50 |
kitcat711 |
I want to use pagination with a search form, I am trying to display the results in a different view : results and pagination works only for the first page |
# |
Feb 10th 2018, 18:11 |
jameg83 |
@admad it’s a folder. The Wkhtmltopdf binary is located within that folder. |
# |
Feb 10th 2018, 16:03 |
admad |
@jameg83 is /usr/bin/wkhtmltopdf a folder or file? |
# |
Feb 10th 2018, 14:39 |
slackebot |
-rwxr-xr-x 1 jamesg83 jamesg83 39804584 Nov 22 2016 wkhtmltopdf |
# |
Feb 10th 2018, 14:39 |
jameg83 |
@admad jamesg83@jamesg83-HP-550 /usr/bin/wkhtmltopdf $ ls -al /usr/bin/wkhtmltopdf total 38952 drwxr-xr-x 6 jamesg83 jamesg83 4096 Feb 8 21:45 . drwxr-xr-x 3 root root 61440 Feb 8 20:58 .. drwxr-xr-x 2 jamesg83 jamesg83 4096 Feb 8 20:59 bin drwxr-xr-x 3 jamesg83 jamesg83 4096 Nov 22 2016 include drwxr-xr-x 2 jamesg83 jamesg83 4096 Nov 22 2016 lib drwxr-xr-x 3 jamesg83 jamesg83 4096 Nov 22 2016 share |
# |
Feb 10th 2018, 14:03 |
waspinator |
I can't seem to get translated strings to show up. I have a `src/Locale/fr_FR/default.po` file with the `msgid` and translated `msgstr` and I call `I18n::setLocale('fr_FR');`. Right next to the element I call `debug(I18n::getLocale());` and I get `fr_FR`, but the message is still in English. I ran `bin/cake cache clear_all` but it still shows up in English. How can I debug to see if cake is actually finding the translation? |
# |
Feb 10th 2018, 13:41 |
loginews |
@hmic I did follow the doc on github ; I guess something went wrong. I was given several options. I will have to play around with it later. |
# |
Feb 10th 2018, 13:26 |
dereuromark |
My generic templates often contain both classes, a bit overhead but then I can use them in both flavors to some degree at least. |
# |
Feb 10th 2018, 13:26 |
dereuromark |
you probably have to :slightly_smiling_face: Since e.g. nav elements have different classes |
# |
Feb 10th 2018, 13:24 |
hmic |
i think you can bake templates with bootstrap-ui too... |
# |
Feb 10th 2018, 13:23 |
hmic |
if that css is missing - it will not look anything good |
# |
Feb 10th 2018, 13:23 |
hmic |
if not, the (already) baked templates assume you are still using foundation, not bootstrap |
# |
Feb 10th 2018, 13:23 |
hmic |
did you adapt your templates too? |
# |
Feb 10th 2018, 13:23 |
hmic |
loginews: did you adapt your layout to load bootstrap at all? |
# |
Feb 10th 2018, 13:02 |
loginews |
Before I installed bootstrap-ui, my screen looked like this: http://www.awesomescreenshot.com/image/3164343/ad83995edf63b83af84bcb9f2b68216b and after installation it looks like this: http://www.awesomescreenshot.com/image/3164344/e74d2d6ea3b12f908341cae910cbb1bc Is that normal? |
# |
Feb 10th 2018, 13:00 |
kitcat711 |
hello, how to use paginate with a search form? I tried but when asking for page=2, the request is a GET and this refresh the search form instead of displaying the results (different view render in POST). How do you fix that? |
# |
Feb 10th 2018, 12:48 |
admad |
@jameg83 what's the output of `ls -al /usr/bin/wkhtmltopdf` |
# |
Feb 10th 2018, 10:17 |
slackebot |
'error') #3 /home/jamesg83/NetBeansProjects/bolted_connections/vendor/cakephp/cakephp/src/Error/ExceptionRenderer.php(325): Cake\Error\ExceptionRenderer->_outpu in /home/jamesg83/NetBeansProjects/bolted_connections/vendor/cakephp/cakephp/src/Error/ErrorHandler.php on line 156 |
# |
Feb 10th 2018, 10:17 |
slackebot |
/home/jamesg83/NetBeansProjects/bolted_connections/vendor/friendsofcake/cakepdf/src/Pdf/CakePdf.php(298): CakePdf\Pdf\Engine\WkHtmlToPdfEngine->output() #1 /home/jamesg83/NetBeansProjects/bolted_connections/vendor/friendsofcake/cakepdf/src/View/PdfView.php(119): CakePdf\Pdf\CakePdf->output('...') #2 /home/jamesg83/NetBeansProjects/bolted_connections/vendor/cakephp/cakephp/src/Error/ExceptionRenderer.php(356): CakePdf\View\PdfView->render('error500', |
# |
Feb 10th 2018, 10:17 |
jameg83 |
Fatal error: [Cake\Core\Exception\Exception] System error "sh: 1: /usr/bin/wkhtmltopdf: Permission denied " when executing command "/usr/bin/wkhtmltopdf --quiet --print-media-type --orientation 'landscape' --page-size 'A4' --encoding 'UTF-8' --margin-bottom '15mm' --margin-left '50mm' --margin-right '30mm' --margin-top '45mm' - -". Try using the binary provided on http://wkhtmltopdf.org/downloads.html #0 |
# |
Feb 10th 2018, 10:17 |
jameg83 |
The error message is:- |
# |
Feb 10th 2018, 10:17 |
jameg83 |
Hi can anyone help with a cakepdf error? I can get wkhtmltopdf working fine via the command line but no success with php.. |
# |
Feb 10th 2018, 07:41 |
bibi |
Could somebody help me ? I am using cakephp 3.5 and when I want to debug my application with X_DEBUG in Eclipse IDE or NetBeans I get the following error message : Error: A route matching "X_DEBUG_SESSION_START=ECLIPSE_DBPGandKEY=1518..." could not be found. |
# |
Feb 10th 2018, 07:36 |
bibi |
hi ! |
# |
Feb 10th 2018, 07:20 |
loginews |
Before I installed bootstrap-ui, my screen looked like this: http://www.awesomescreenshot.com/image/3164343/ad83995edf63b83af84bcb9f2b68216b and after installation it looks like this: http://www.awesomescreenshot.com/image/3164344/e74d2d6ea3b12f908341cae910cbb1bc Is that normal? |