# |
Mar 12th 2018, 05:29 |
savant |
strange |
# |
Mar 12th 2018, 05:13 |
angelxmoreno |
i'm doritos? :nerd_face: |
# |
Mar 12th 2018, 05:13 |
savant |
im layz |
# |
Mar 12th 2018, 05:13 |
savant |
same |
# |
Mar 12th 2018, 05:13 |
angelxmoreno |
lmao |
# |
Mar 12th 2018, 05:13 |
angelxmoreno |
i was always a default routes kinda guy |
# |
Mar 12th 2018, 05:11 |
savant |
lots of people complained about not being able to remove them |
# |
Mar 12th 2018, 05:11 |
savant |
maybe 1.3 |
# |
Mar 12th 2018, 05:11 |
savant |
we added fallback routes in… 2.x? |
# |
Mar 12th 2018, 05:10 |
angelxmoreno |
sweet. +1 thing learned in Cake. all these years and still learning. love it |
# |
Mar 12th 2018, 05:10 |
angelxmoreno |
ok, it makes sense why i was getting the errors with the RouteCollection throwning exceptions |
# |
Mar 12th 2018, 05:09 |
savant |
or for cases where I dont want potentially duplicated content because i’ve defined a route for everything already |
# |
Mar 12th 2018, 05:09 |
angelxmoreno |
crap |
# |
Mar 12th 2018, 05:09 |
savant |
I do that for very small applications |
# |
Mar 12th 2018, 05:09 |
savant |
no fallbacks means you are explicitly defining routes |
# |
Mar 12th 2018, 05:08 |
angelxmoreno |
seems like with no fallbacks i get all sorts of errors |
# |
Mar 12th 2018, 05:08 |
joddit |
Uses the stock ones for the given scope, no? |
# |
Mar 12th 2018, 05:08 |
angelxmoreno |
i need to look into it more |
# |
Mar 12th 2018, 05:08 |
savant |
sure |
# |
Mar 12th 2018, 05:08 |
angelxmoreno |
does that make sense ? |
# |
Mar 12th 2018, 05:08 |
savant |
you can check the RouteCollection (?) class for the fallbacks method |
# |
Mar 12th 2018, 05:08 |
angelxmoreno |
``` $routes->prefix('api', function (RouteBuilder $routes) { $routes->connect('/finances/events', [ 'plugin' => 'Finances', 'controller' => 'Dashboard', 'action' => 'events', ]); $routes->fallbacks(DashedRoute::class); }); ``` |
# |
Mar 12th 2018, 05:08 |
savant |
the core ones |
# |
Mar 12th 2018, 05:08 |
savant |
It creates the fallback routes |
# |
Mar 12th 2018, 05:08 |
angelxmoreno |
@savant IDK what `$routes->fallbacks(DashedRoute::class);` does but that fixed my routing issue |
# |
Mar 12th 2018, 05:07 |
angelxmoreno |
there is nothing little about CakePHP lol. SLimPHP is my 2nd favorite framework and THAT is a little |
# |
Mar 12th 2018, 05:07 |
joddit |
Well it won't even accomplish what I need to accomplish so that idea is out |
# |
Mar 12th 2018, 05:06 |
angelxmoreno |
you can go the simple template edits but that would not be very reusable |
# |
Mar 12th 2018, 05:03 |
joddit |
Was just trying to accomplish it with simple template edits, but that just won't do |
# |
Mar 12th 2018, 05:03 |
joddit |
Yeah, probably going to have to do that |
# |
Mar 12th 2018, 05:03 |
angelxmoreno |
I extend the form helper to generate the templates I prefer |
# |
Mar 12th 2018, 05:03 |
joddit |
Yep, it's a great little framework |
# |
Mar 12th 2018, 05:02 |
angelxmoreno |
I use bootstrap forms all the time |
# |
Mar 12th 2018, 05:00 |
savant |
(a few of the core devs work on that plugin) |
# |
Mar 12th 2018, 05:00 |
savant |
and something you might want to let us know about |
# |
Mar 12th 2018, 05:00 |
savant |
well if there is non-stock bootstrap “functionality” that is hard to do, then it sounds like a bug |
# |
Mar 12th 2018, 04:58 |
joddit |
Well it's not criticism. More like if you want exact stock bootstrap functionality, it's perfect |
# |
Mar 12th 2018, 04:57 |
savant |
also you can just use your own custom templates in the cakephp FormHelper: https://book.cakephp.org/3.0/en/views/helpers/form.html#customizing-the-templates-formhelper-uses |
# |
Mar 12th 2018, 04:56 |
savant |
well any criticism you have for the plugin are best set as issues ;) |
# |
Mar 12th 2018, 04:56 |
joddit |
Doubt the docs would be different than the plugin heh |
# |
Mar 12th 2018, 04:56 |
savant |
and what things does it do automagically that you dont like? |