# |
May 27th 2021, 21:12 |
CakeIsGreat |
Did just catch an error regarding setting $this-> |
# |
May 27th 2021, 21:08 |
CakeIsGreat |
https://pastebin.com/fB9ECn9X |
# |
May 27th 2021, 21:08 |
CakeIsGreat |
Cake isn't saving any associations. Anyone mind taking a look the controller? Can't figure this out. |
# |
May 27th 2021, 20:55 |
rightscoreanalysis |
ok looks like I can do what i need to do in the bootstrap |
# |
May 27th 2021, 20:54 |
greg138 |
`core.php` in your plugin? I didn't think that was even a thing. Isn't `core` for, well, Cake's core? |
# |
May 27th 2021, 20:50 |
rightscoreanalysis |
although now core.php is not being read :face_palm: |
# |
May 27th 2021, 20:47 |
rightscoreanalysis |
ah fixed it :) |
# |
May 27th 2021, 20:45 |
rightscoreanalysis |
I also added 'routes' => true |
# |
May 27th 2021, 20:44 |
rightscoreanalysis |
adding bootstrap true requires that i have a bootstrap.php in my plugin/Config dir, but the routes.php is still not being read |
# |
May 27th 2021, 20:29 |
kevin.pfeifer |
:+1: |
# |
May 27th 2021, 20:29 |
rightscoreanalysis |
that was it thanks @kevin.pfeifer |
# |
May 27th 2021, 20:25 |
rightscoreanalysis |
hmm good spot |
# |
May 27th 2021, 20:25 |
kevin.pfeifer |
when loading the plugin did you add ```'routes' => true``` |
# |
May 27th 2021, 20:24 |
rightscoreanalysis |
"A plugin can also have basically any of the other directories that your application can, such as Config, Console, Lib, webroot, etc." - |
# |
May 27th 2021, 20:23 |
rightscoreanalysis |
I have a plugin which works and I call, I have put a die() at the top of myplugin/Config/routes.php and core.php but execution does not die - how is that possible? |
# |
May 27th 2021, 20:14 |
rightscoreanalysis |
seems the core.php and routes.php within a plugin are not read for some reason |
# |
May 27th 2021, 19:46 |
rightscoreanalysis |
the book of prefix routing seems to be all about using /admn/foo/index to route to admin_index in foo controller - I guess that was a sensible option once upon a time? |
# |
May 27th 2021, 19:45 |
rightscoreanalysis |
anyone remember if it is possible to have controller in subfolders in cake2 |
# |
May 27th 2021, 18:43 |
etibor |
very useful plugin |
# |
May 27th 2021, 18:42 |
kevin.pfeifer |
nope |
# |
May 27th 2021, 18:42 |
etibor |
have you ever worked with cakepdf? |
# |
May 27th 2021, 18:42 |
etibor |
thank you @kevin.pfeifer |
# |
May 27th 2021, 18:42 |
kevin.pfeifer |
but I could be wrong and there is some way to do what you want |
# |
May 27th 2021, 18:42 |
etibor |
yes simple often faster solution :) |
# |
May 27th 2021, 18:41 |
slackebot |
.htaccess redirect from `/review/*` to `/clark/*` |
# |
May 27th 2021, 18:41 |
kevin.pfeifer |
well prefixes are basically meant to have the connected controller logic to be present in a Sub-Namespaces inside Controllers. So if you already have a `clerk` prefix your controller for those routes live in the folder `src/Controller/clerk` and therefore live in another namespace (as well as the connected template files) I haven’t dealt with routes that often till now but I guess you would be faster to just put an |
# |
May 27th 2021, 18:29 |
etibor |
yes that would be the case |
# |
May 27th 2021, 18:29 |
etibor |
hello @kevin.pfeifer |
# |
May 27th 2021, 12:45 |
kevin.pfeifer |
ah i mean `/review/somecontroller/someaction` as well as `/clerk/somecontroller/someaction` |
# |
May 27th 2021, 12:36 |
kevin.pfeifer |
so you want to have the same result with either `/review/someaction` as well as `/clerk/someaction` |
# |
May 27th 2021, 12:17 |
etibor |
does not seems its enough |
# |
May 27th 2021, 12:17 |
etibor |
`$routes->connect('/review/*', ['prefix'=>'clerk']);` |
# |
May 27th 2021, 12:16 |
etibor |
i would like to redirect one prefix to another prefix(with all actions and views) |
# |
May 27th 2021, 12:16 |
etibor |
hello everyone |
# |
May 26th 2021, 22:12 |
tyler.adam.lazenby |
I finally figured it out, there is a nesting label template |
# |
May 26th 2021, 22:10 |
etibor |
its not avery good solution since i can not use those values in the Paginate |
# |
May 26th 2021, 22:10 |
etibor |
Kevin,ndm thank you for your help, i implemented in not a smooth way, i made a pre query to determine if it is a clerk or a secreter than made the second query , and attached to the main query in the index controller by using $results->map |
# |
May 26th 2021, 22:01 |
tyler.adam.lazenby |
how can I change that |
# |
May 26th 2021, 21:59 |
tyler.adam.lazenby |
Boo is just so I can easily inpect it |
# |
May 26th 2021, 21:59 |
tyler.adam.lazenby |
```// label specific for radio 'radiolabel' => '<label class="form-check-label" {{attrs}}>{{text}}</label>', // Wrapping container for radio input/label, 'radioWrapper' => '<div class="form-check form-check-radio">Boo {{radiolabel}}</div>',``` |
# |
May 26th 2021, 21:59 |
tyler.adam.lazenby |
this is what i am trying right now in my custom FormHelper class |