# |
Nov 22nd 2017, 22:22 |
joopp |
but no matter my path paraeter gets extra APP_DIR |
# |
Nov 22nd 2017, 22:22 |
blackjccl |
Hi guys, I searched the entire network of how to use the pagination or the cakephp 3 helper when you work with a stored procedure with something like that |
# |
Nov 22nd 2017, 22:22 |
joopp |
i have the two parameter |
# |
Nov 22nd 2017, 22:22 |
raul338 |
https://book.cakephp.org/3.0/en/controllers/request-response.html#sending-files |
# |
Nov 22nd 2017, 22:21 |
raul338 |
and i see you are passing 3 |
# |
Nov 22nd 2017, 22:21 |
raul338 |
sure but response->file has 2 params |
# |
Nov 22nd 2017, 22:21 |
joopp |
in my case the APP_DIR |
# |
Nov 22nd 2017, 22:21 |
joopp |
main problem is that : $this->response->file(' ** '// its seems ** have already some value |
# |
Nov 22nd 2017, 22:20 |
joopp |
from my cake site |
# |
Nov 22nd 2017, 22:20 |
joopp |
i am trying to download something |
# |
Nov 22nd 2017, 22:19 |
raul338 |
what are you trying to do? |
# |
Nov 22nd 2017, 22:19 |
joopp |
i know APP_DIR is the src |
# |
Nov 22nd 2017, 22:16 |
joopp |
will also not work because it will give back C:\xampp\htdocs\cakeproject\src\'WWW_ROOT', ROOT . DS . 'webroot' . DS |
# |
Nov 22nd 2017, 22:15 |
joopp |
tryying the following $this->response->file(''WWW_ROOT', ROOT . DS . 'webroot' . DS', array( |
# |
Nov 22nd 2017, 22:12 |
joopp |
please help me |
# |
Nov 22nd 2017, 22:11 |
joopp |
sorry |
# |
Nov 22nd 2017, 22:11 |
joopp |
C:\xampp\htdocs\cakeproject\src\ |
# |
Nov 22nd 2017, 22:11 |
joopp |
thats why i see that no matter what try its allways begin from $this->response->file('', array( |
# |
Nov 22nd 2017, 22:11 |
joopp |
$this->response->file('.......//i left empty// ......', array( |
# |
Nov 22nd 2017, 22:10 |
joopp |
i dont know how to change this |
# |
Nov 22nd 2017, 22:10 |
joopp |
The requested file C:\xampp\htdocs\cakeproject\src\ was not found or not readable |
# |
Nov 22nd 2017, 22:09 |
raul338 |
I searched the whole cakephp src directory and getAssociation is not defined anywhere |
# |
Nov 22nd 2017, 22:09 |
joopp |
i have the same problem as https://stackoverflow.com/questions/45557691/file-path-setting-of-this-response-file-cakephp3 |
# |
Nov 22nd 2017, 22:07 |
dereuromark |
they could still be in a trait. use a proper IDE that will tell you and find the location of it for you with a single click |
# |
Nov 22nd 2017, 22:06 |
raul338 |
the function is not defined in the code |
# |
Nov 22nd 2017, 22:06 |
raul338 |
https://github.com/cakephp/cakephp/blob/master/src/ORM/Table.php |
# |
Nov 22nd 2017, 22:05 |
raul338 |
function Table::getAssociation() |
# |
Nov 22nd 2017, 22:05 |
raul338 |
https://api.cakephp.org/3.5/source-class-Cake.ORM.Table.html#920-946 |
# |
Nov 22nd 2017, 22:05 |
raul338 |
Hi, could it be that there are functions in the documentation, which are not in the cakephp project??? |
# |
Nov 22nd 2017, 21:40 |
joopp |
and not for webroot/uploads |
# |
Nov 22nd 2017, 21:40 |
joopp |
main problem is that its shows from src/webroot/uploads |
# |
Nov 22nd 2017, 21:20 |
joopp |
the same happens on ftp and local |
# |
Nov 22nd 2017, 21:19 |
lykosis |
:slightly_smiling_face: |
# |
Nov 22nd 2017, 21:17 |
joopp |
i gives back the correct path(the same as from total commander ftp) |
# |
Nov 22nd 2017, 21:17 |
joopp |
was not found or not readable |
# |
Nov 22nd 2017, 21:17 |
joopp |
The requested file |
# |
Nov 22nd 2017, 21:16 |
joopp |
i try to upload my files but i got these all the time |
# |
Nov 22nd 2017, 21:16 |
joopp |
not like 1 |
# |
Nov 22nd 2017, 21:16 |
joopp |
yes even from 2 to 3 was a big jump |
# |
Nov 22nd 2017, 21:09 |
spencdev |
Depends on how big your project is, honestly. There isn't really an automatic way to do it because a lot has changed. |
# |
Nov 22nd 2017, 21:05 |
joopp |
but myself i think you can cake bake all your previous database |