# |
Jun 19th 2019, 06:45 |
a.didier |
hello everyone :wave: Can i set a route,php inside a plugin ? (Cake 2.10.18) Because is saw `CakePlugin::routes();` in the main route.php. Does it load a route.php located in `/app/plugin/MyPlugin/Config/route.php` ? |
# |
Jun 19th 2019, 05:01 |
conehead |
Good morning everyone |
# |
Jun 18th 2019, 23:16 |
rightscoreanalysis |
if i have provided post params which filtered my original results, so these need to be posted back with each page link also? |
# |
Jun 18th 2019, 23:14 |
rightscoreanalysis |
the url being clased is: articles/archive?page=3 |
# |
Jun 18th 2019, 23:13 |
rightscoreanalysis |
when I click a numbered link I get: Not Found Cake\Http\Exception\NotFoundException |
# |
Jun 18th 2019, 23:13 |
rightscoreanalysis |
I am using the paginator feature, I see the limited number of entities returned and I have numbered links |
# |
Jun 18th 2019, 22:22 |
dereuromark |
For /view/ID, /edit/ID etc. |
# |
Jun 18th 2019, 22:22 |
dereuromark |
it is only meant for primary keys |
# |
Jun 18th 2019, 22:17 |
joey.mukherjee |
If I want to use the hashid plugin on my id in one table which is a foreign key to another, where do I put the behavior? I am getting a Undefined property ‘_config’. |
# |
Jun 18th 2019, 20:52 |
ecedenyo |
anyone available? (before continue giving details...) |
# |
Jun 18th 2019, 20:52 |
ecedenyo |
I've set the site in IIS to work w/ PHP v.5.6 |
# |
Jun 18th 2019, 20:52 |
ecedenyo |
everything is working "well" on my local enviorenment (windows), but not in the demo server (windows) |
# |
Jun 18th 2019, 20:51 |
ecedenyo |
hello there, needing some help with a v.2.x installation |
# |
Jun 18th 2019, 20:34 |
devito |
awww no async in that handler |
# |
Jun 18th 2019, 20:32 |
challgren |
@devito https://stackoverflow.com/questions/11177233/javascript-event-that-runs-before-page-changes |
# |
Jun 18th 2019, 20:31 |
devito |
@challgren thanks, ill look into a ajax req |
# |
Jun 18th 2019, 20:24 |
devito |
i mean if you need user based AA you kinda are |
# |
Jun 18th 2019, 20:24 |
ricksaccous |
pretty sure i'm just describing acls but i don't want to bring that in to this project just yet, cause yeah, not in the spec and such |
# |
Jun 18th 2019, 20:24 |
devito |
yeah |
# |
Jun 18th 2019, 20:23 |
ricksaccous |
just groups would be easy |
# |
Jun 18th 2019, 20:23 |
devito |
ahh |
# |
Jun 18th 2019, 20:22 |
ricksaccous |
and can be edited |
# |
Jun 18th 2019, 20:22 |
ricksaccous |
to where we can set group a up with permissions to do x y and z |
# |
Jun 18th 2019, 20:22 |
ricksaccous |
well we need it more fine tuned |
# |
Jun 18th 2019, 20:22 |
devito |
and group b can do that |
# |
Jun 18th 2019, 20:22 |
devito |
group a can do this |
# |
Jun 18th 2019, 20:22 |
devito |
i guess you can do that per user group no? |
# |
Jun 18th 2019, 20:22 |
devito |
mm |
# |
Jun 18th 2019, 20:21 |
ricksaccous |
the only hacky/lame part will be assigning the permissions since it's not descibed in db but as an array |
# |
Jun 18th 2019, 20:21 |
ricksaccous |
and use that in the request policy |
# |
Jun 18th 2019, 20:21 |
ricksaccous |
in the identity |
# |
Jun 18th 2019, 20:21 |
ricksaccous |
I'll just contain() their permissions on log in |
# |
Jun 18th 2019, 20:21 |
devito |
mm |
# |
Jun 18th 2019, 20:20 |
ricksaccous |
setting up that whole system is not in our spec, and will take some time |
# |
Jun 18th 2019, 20:20 |
ricksaccous |
I think I'll just use my ghetto array and patch for now |
# |
Jun 18th 2019, 20:20 |
devito |
as long as you dont mind the db overhead with each req |
# |
Jun 18th 2019, 20:19 |
devito |
the acl plugin for 3.x is pretty solid |
# |
Jun 18th 2019, 20:19 |
challgren |
@devito you can’t unless you do it on the browser side via javascript |
# |
Jun 18th 2019, 20:19 |
devito |
@ricksaccous yeah thats what acl’s are |
# |
Jun 18th 2019, 20:18 |
devito |
beforeRedirect? |
# |
Jun 18th 2019, 20:18 |
devito |
which callback in the controller life cycle should I use to detect when a user is leaving a page? |