# |
Dec 11th 2017, 10:28 |
jkpatel291289 |
strange-- it gives Cake\ORM\Association\BelongsTo |
# |
Dec 11th 2017, 10:27 |
spriz |
git the content of `debug($this->Lorryreceipts->Trucks)` |
# |
Dec 11th 2017, 10:27 |
spriz |
I just want to check if the relations are set up correctly |
# |
Dec 11th 2017, 10:26 |
jkpatel291289 |
i want to populate drop down |
# |
Dec 11th 2017, 10:26 |
spriz |
and check if it’s Cake\…\Table or it’s actually \App\Model\Trucks instance |
# |
Dec 11th 2017, 10:25 |
spriz |
try do debug `$this->Lorryreceipts->Trucks` |
# |
Dec 11th 2017, 10:25 |
jkpatel291289 |
does beforefind() apply on association ? $consignors = $consignees = $this->Lorryreceipts->Trucks->find('list', ['limit' => 200]); in my trucksTable class I have behavior that filter all find operation and return only trucks from current company.Which is working properly and i always get only current company's truck however when i fetch them for lorryreceipts that returns my unfiltered data from whole table. |
# |
Dec 11th 2017, 10:22 |
stoykovnet |
thank you very much*** |
# |
Dec 11th 2017, 10:18 |
spriz |
and path is `path: A path relative to the filesystem.root.` |
# |
Dec 11th 2017, 10:17 |
spriz |
`filesystem.root: (default ROOT . DS) Directory where files should be written to by default` |
# |
Dec 11th 2017, 10:17 |
spriz |
http://cakephp-upload.readthedocs.io/en/latest/configuration.html |
# |
Dec 11th 2017, 10:17 |
spriz |
if you read the docs saeideng that’s not how you’re supposed to (and neither how we used to :thinking_face: ) |
# |
Dec 11th 2017, 10:17 |
spriz |
This solves the problem aye, but then there’s a problem on the Cake upload plugin |
# |
Dec 11th 2017, 10:16 |
saeideng |
but I use something like `'path' => 'webroot{DS}img{DS}banner{DS}{primaryKey}{DS}',` |
# |
Dec 11th 2017, 10:16 |
stoykovnet |
@spriz ↑ |
# |
Dec 11th 2017, 10:15 |
stoykovnet |
Alright, thank you very for your help again! :-) |
# |
Dec 11th 2017, 10:15 |
saeideng |
i never used `filesystem` ! |
# |
Dec 11th 2017, 10:13 |
saeideng |
this path is not related |
# |
Dec 11th 2017, 10:13 |
stoykovnet |
I see ``` 'filesystem' => [ 'adapter' => ApactaFileSystem::getAdapter('generic'), 'root' => 'uploads/ExpenseFiles' ], ``` ↑ What about this root key? |
# |
Dec 11th 2017, 10:13 |
saeideng |
change :point_up_2: |
# |
Dec 11th 2017, 10:13 |
saeideng |
'path' => '{DS}{field}', |
# |
Dec 11th 2017, 10:13 |
stoykovnet |
I have to mention that I'm using google cloud storage |
# |
Dec 11th 2017, 10:12 |
stoykovnet |
I'm trying to configure it. But when I upload files the files show up in root instead of the folder I've specified in the behavior configuration. https://gist.github.com/stoykovnet/c036a4e519616b77a8b61d7bed9e725e |
# |
Dec 11th 2017, 10:12 |
saeideng |
? |
# |
Dec 11th 2017, 10:12 |
saeideng |
what is your your problem with `Josegonzalez/Upload.Upload` |
# |
Dec 11th 2017, 10:12 |
neon1024 |
Implement the method |
# |
Dec 11th 2017, 10:12 |
neon1024 |
what i need to do ? |
# |
Dec 11th 2017, 10:11 |
saeideng |
https://pastebin.com/raw/4PVDsdqj |
# |
Dec 11th 2017, 10:11 |
stoykovnet |
Does anyone of you have experience with 'Josegonzalez/Upload.Upload' plugin? |
# |
Dec 11th 2017, 10:11 |
stoykovnet |
Hey cake! |
# |
Dec 11th 2017, 10:09 |
saeideng |
I no access to pastebin.com now :slightly_smiling_face: |
# |
Dec 11th 2017, 10:09 |
neon1024 |
https://book.cakephp.org/3.0/en/controllers/components/authentication.html#authorization |
# |
Dec 11th 2017, 10:09 |
neon1024 |
johan, Well you’ve told CakePHP to authorize users using the controller, and then you’ve not implemented the method. Which is why CakePHP thinks it’s missing, because it is |
# |
Dec 11th 2017, 10:07 |
johnwayne |
I am getting problem using cake\bake, I have installed plugin and it is loaded but I am still getting info Exception: Shell class for "Bake" could not be found. (in \src\Console\ShellDispatcher.php, line 324]) |
# |
Dec 11th 2017, 10:07 |
johan12 |
what wrong i am doing? |
# |
Dec 11th 2017, 10:06 |
johan12 |
https://pastebin.com/d47UZpE7 my app controller and https://pastebin.com/4PVDsdqj my ReviewRattings Controller <neon1024> <saeideng> |
# |
Dec 11th 2017, 10:06 |
johan12 |
https://pastebin.com/4PVDsdqj my ReviewRattings Controller |
# |
Dec 11th 2017, 10:06 |
jkpatel291289 |
does beforefind() apply on association ? $consignors = $consignees = $this->Lorryreceipts->Trucks->find('list', ['limit' => 200]); in my trucksTable class I have behavior that filter all find operation and return only trucks from current company.Which is working properly and i always get only current company's truck however when i fetch them for lorryreceipts that returns my unfiltered data from whole table. |
# |
Dec 11th 2017, 10:04 |
johan12 |
https://pastebin.com/d47UZpE7 my app controller |
# |
Dec 11th 2017, 10:03 |
saeideng |
``` $this->loadComponent('Auth', [ 'authorize' => [ 'controller', ``` |
# |
Dec 11th 2017, 10:02 |
saeideng |
AuthComponent config .... |