# |
Jul 9th 2018, 09:52 |
neon1024 |
`URL mismatch in POST data (expected '/admin/users/delete/1' but found '/admin/users')` |
# |
Jul 9th 2018, 09:52 |
neon1024 |
Does anyone know what this means? |
# |
Jul 9th 2018, 09:40 |
neon1024 |
RIMMER: Tomorrow. It’s on tomorrow’s daily goal list. Item 34, right after “Learn Portugese.” |
# |
Jul 9th 2018, 09:39 |
neon1024 |
Or write a new listener and suggest that the old one be deprecated |
# |
Jul 9th 2018, 09:39 |
neon1024 |
Perhaps I should contribute it myself |
# |
Jul 9th 2018, 09:39 |
neon1024 |
I added the related models on the index method |
# |
Jul 9th 2018, 09:39 |
neon1024 |
It would be nice if it was renamed to something more descriptive, or it’s functionality was extended some more |
# |
Jul 9th 2018, 09:35 |
neon1024 |
hmic, Sure if you don’t mind that’ll save me some typing. Could be worth contributing to the plugin. The relatedModels listener is a confusing beast at best |
# |
Jul 9th 2018, 09:29 |
hmic |
it's a blatant copy of the relatedModels listener though, AFAIK. has been some time, but using it regularly... ;-) |
# |
Jul 9th 2018, 09:28 |
hmic |
if you want mz implementation, i can put it into a gist |
# |
Jul 9th 2018, 09:23 |
slackebot4 |
! |
# |
Jul 9th 2018, 09:23 |
slackebot4 |
Command sent from Slack by josbeir: |
# |
Jul 9th 2018, 09:22 |
neon1024 |
Perhaps I should get that second coffee! |
# |
Jul 9th 2018, 09:22 |
neon1024 |
Hah, missing `echo` |
# |
Jul 9th 2018, 09:22 |
neon1024 |
Yes, you’re right hmic. |
# |
Jul 9th 2018, 09:22 |
neon1024 |
File uploaded https://cakesf.slack.com/files/U1BT622HW/FBLFJ3801/defining_a_custom_block.php / https://slack-files.com/T053DPNCM-FBLFJ3801-d9c864eb4b |
# |
Jul 9th 2018, 09:21 |
hmic |
i implemented another listener called containedModels that does exactly that... if you have a look at the relatedmodels listener, you will notice whz it does not work this way (in a view action) |
# |
Jul 9th 2018, 09:21 |
neon1024 |
Yeah it’s not working with an element either, so I think I have not defined my block correctly |
# |
Jul 9th 2018, 09:21 |
josbeir |
or is it a seperate instance? |
# |
Jul 9th 2018, 09:20 |
josbeir |
so the view inside a cell is not rendered using appview? |
# |
Jul 9th 2018, 09:20 |
hmic |
regarding the relatedModels thing, i run into the same problem-restriction |
# |
Jul 9th 2018, 09:19 |
neon1024 |
It seems you can’t, unless I’ve implemented my block incorrectly |
# |
Jul 9th 2018, 09:19 |
hmic |
cells are intentionally seperated. |
# |
Jul 9th 2018, 09:18 |
hmic |
A cell will not be using the same thing, an element would. go with an element instead :p |
# |
Jul 9th 2018, 09:18 |
josbeir |
your blocks are stored in there |
# |
Jul 9th 2018, 09:17 |
josbeir |
because in the end it uses your view class |
# |
Jul 9th 2018, 09:17 |
josbeir |
good question... i would think so |
# |
Jul 9th 2018, 09:16 |
neon1024 |
if I define a block in a cell, can I still append to it elsewhere? |
# |
Jul 9th 2018, 09:14 |
neon1024 |
I’ve written a hook view method, but I don’t really want to do that in every View method across my admin area |
# |
Jul 9th 2018, 09:13 |
neon1024 |
It would be there even if the result was `0` rows I’d think |
# |
Jul 9th 2018, 09:13 |
neon1024 |
I don’t see a query in the Debug Kit SQL tab |
# |
Jul 9th 2018, 09:12 |
josbeir |
r u sure its not working ? |
# |
Jul 9th 2018, 08:44 |
neon1024 |
I mean, I can write my own method and hook the beforeFind to contain the association, but that defeats the whole point of the listener |
# |
Jul 9th 2018, 08:42 |
neon1024 |
Perhaps that’s it? Perhaps Crud is inflecting Roles to Role |
# |
Jul 9th 2018, 08:42 |
neon1024 |
A `Roles hasMany Users` and vice versa |
# |
Jul 9th 2018, 08:41 |
neon1024 |
I am viewing a Role, and expecting a query for Users in that role |
# |
Jul 9th 2018, 08:41 |
neon1024 |
I am using Crud plugin, and have setup the relatedModels listener, and enabled it for my View action, however I’m not getting a query for the associations. Anyone think why this might be? |
# |
Jul 9th 2018, 08:39 |
neon1024 |
Morning all |
# |
Jul 9th 2018, 05:13 |
sherwinrobles |
File uploaded https://cakesf.slack.com/files/U42VDSR19/FBLRBBHAP/image.png / https://slack-files.com/T053DPNCM-FBLRBBHAP-63bc608f0b - Hi to all. I am working with cookies.. in the latest cakephp 3x. I can't make it work . What is wrong here? thanks |
# |
Jul 9th 2018, 02:19 |
hmic |
i dont actually know off hand if there had been changes to that. but i would suggest you check the debugkit changelog for the 3.6 release, as they would have needed to change the behaviour too |
# |
Jul 9th 2018, 02:19 |
itmpls |
i mean in 3.5, its defined too |