# |
Oct 16th 2019, 08:37 |
javier.villanueva |
cakepdf ignore my config.... :( always show a pdf viewer and return An error ocurred loading a pdf file |
# |
Oct 16th 2019, 08:34 |
admad |
try using expression instead of key => value in conditions |
# |
Oct 16th 2019, 08:23 |
scuadra |
I also tried the third param of where to be true |
# |
Oct 16th 2019, 08:22 |
scuadra |
and my where clause ->where($this->conditions, ['id' => 'string']) |
# |
Oct 16th 2019, 08:22 |
scuadra |
these are my conditions $conditions["$field LIKE"] = "%$value%"; |
# |
Oct 16th 2019, 08:21 |
scuadra |
@admad I still get the error "Cannot convert value of type `string` to integer" |
# |
Oct 16th 2019, 08:18 |
javier.villanueva |
i set default config with a CakePdf.php file in config |
# |
Oct 16th 2019, 08:17 |
javier.villanueva |
ok, config problem solved with cakepdf... |
# |
Oct 16th 2019, 08:17 |
ra7bi |
when i check the Request after post i can see Requests => ids => [0=>12, 1=>13] |
# |
Oct 16th 2019, 08:16 |
ra7bi |
do patchEntity can handle that ? |
# |
Oct 16th 2019, 08:15 |
ra7bi |
i also tried what ndm told me but can not make it work . |
# |
Oct 16th 2019, 08:14 |
ra7bi |
I have three tables , ``` Requests ---> BelongToMany ---> Details ``` and i have ``` Reports -----> BelongTo ---> Requests``` i want in Add report form add a Requests Details i tried ``` $this->select('Requests.'.$request->id.'.Details._ids' ) ``` and ``` $this->select('Requests.'.$request->id.'.Details._fieldName' ) ``` but not working |
# |
Oct 16th 2019, 08:10 |
javier.villanueva |
Configure::write('CakePdf', [ 'engine' => [ 'className' => 'CakePdf.WkHtmlToPdf', 'binary' => 'C:\\wkhtmltopdf\\bin\\wkhtmltopdf.exe', 'cwd' => 'C:\\wkhtmltopdf\\bin' ], 'margin' => [ 'bottom' => 15, 'left' => 50, 'right' => 30, 'top' => 45 ], 'orientation' => 'landscape', 'download' => true ]); |
# |
Oct 16th 2019, 08:10 |
javier.villanueva |
this is my config |
# |
Oct 16th 2019, 08:07 |
scuadra |
ah, ok :slightly_smiling_face: |
# |
Oct 16th 2019, 08:07 |
scuadra |
how to do it :face_with_rolling_eyes: |
# |
Oct 16th 2019, 08:07 |
admad |
'string' |
# |
Oct 16th 2019, 08:07 |
scuadra |
@admad I tried ['id' => 'varchar'] but with no effect |
# |
Oct 16th 2019, 08:06 |
admad |
@scuadra override the field using $types argument of where() |
# |
Oct 16th 2019, 08:00 |
scuadra |
and I am still getting "Cannot convert value of type `string` to integer" error |
# |
Oct 16th 2019, 07:59 |
scuadra |
In cake2 it was OK but now I have issues to make it work |
# |
Oct 16th 2019, 07:59 |
javier.villanueva |
I havent.... but configure 404 is getEngine... then seems this missing configuration |
# |
Oct 16th 2019, 07:58 |
scuadra |
when I type 12 I want to get all the apps that start with 12 -> 12, 123, 121, 1243..... |
# |
Oct 16th 2019, 07:58 |
javier.villanueva |
WkHtmlToPdfEngine |
# |
Oct 16th 2019, 07:58 |
spriz |
@javier.villanueva and do you have a stacktrace? |
# |
Oct 16th 2019, 07:58 |
spriz |
@javier.villanueva it sounds like there is some missing configuration - which engine are you trying to use? |
# |
Oct 16th 2019, 07:58 |
spriz |
@scuadra but why would you need to use `LIKE` for that? |
# |
Oct 16th 2019, 07:57 |
javier.villanueva |
seems that not found the engine, but I have specified in app.php |
# |
Oct 16th 2019, 07:57 |
scuadra |
@spriz I have application table and I want to search the app number (id column which is integer) |
# |
Oct 16th 2019, 07:55 |
javier.villanueva |
any idea? |
# |
Oct 16th 2019, 07:55 |
javier.villanueva |
I am trying to use CakePDF (https://github.com/FriendsOfCake/CakePdf) load the plugin in bootstrap.php and appear the next error: Warning: Illegal offset type in isset or empty in src\Core\Configure.php on line 404 |
# |
Oct 16th 2019, 07:54 |
spriz |
Why do you want to do that? :) |
# |
Oct 16th 2019, 07:54 |
spriz |
and also the use case sounds weird |
# |
Oct 16th 2019, 07:54 |
spriz |
but take care of MySQL performance issues :) |
# |
Oct 16th 2019, 07:54 |
spriz |
@scuadra you can do `->where(['Comments.priority LIKE' => '1_'])` |
# |
Oct 16th 2019, 07:52 |
scuadra |
Hello. How can I use LIKE as a condition on an integer column? I am using Cake 3.x and MySQL 5.7. |
# |
Oct 16th 2019, 07:45 |
david |
morning |
# |
Oct 16th 2019, 07:06 |
javier.villanueva |
morning |
# |
Oct 16th 2019, 06:37 |
conehead |
Morning! |
# |
Oct 16th 2019, 05:59 |
alexdd55976 |
Morning |
# |
Oct 16th 2019, 02:44 |
admad |
@luizcmarin https://github.com/FriendsOfCake/awesome-cakephp/wiki/4.x-upgraded-ones |