# |
Dec 9th 2017, 10:03 |
saeideng |
I'm not sure you able to apply RouteClass before/after of routes |
# |
Dec 9th 2017, 10:02 |
saeideng |
jd-robbs |
# |
Dec 9th 2017, 10:01 |
JD-Robbs |
Oh sorry xD |
# |
Dec 9th 2017, 10:01 |
saeideng |
ra7bi? |
# |
Dec 9th 2017, 10:01 |
JD-Robbs |
Yup, latest everything |
# |
Dec 9th 2017, 10:00 |
saeideng |
latest version of debugkit? |
# |
Dec 9th 2017, 10:00 |
JD-Robbs |
For example, how does DebugKit manage it to have it's routes defined before my app even reached the ROutingMiddleware middleware in my stack? |
# |
Dec 9th 2017, 09:58 |
JD-Robbs |
However, I need to run some code in a custom RouteClass *before* and some *after* certain groups of routes have been defined. Can this be solved somehow? |
# |
Dec 9th 2017, 09:57 |
JD-Robbs |
Argh, worked out it was the middleware order in Application |
# |
Dec 9th 2017, 09:54 |
JD-Robbs |
When I run Router::getRouteCollection() inside a middleware, I don't get any of my own routes yet (only ones from DebugKit are setup). So just wondering how I can get my own? |
# |
Dec 9th 2017, 08:55 |
ra7bi |
when i clicked on Variables |
# |
Dec 9th 2017, 08:55 |
ra7bi |
that was the browser console output |
# |
Dec 9th 2017, 08:55 |
ra7bi |
debugKit not able to show Variables tab '/debug-kit/panels/view/592ab69d-7e5b-45ec-9df7-c587d360eb97 500 (Internal Server Error)' |
# |
Dec 8th 2017, 22:35 |
meder |
one of those fields is a datetime. i'm guessing it craps out on that |
# |
Dec 8th 2017, 22:35 |
meder |
why do i get "Unexpected data found" when specifying $entity->toArray() to a patchEntity? i just want to adjust 1 or 2 fields in my entity and use a validation method |
# |
Dec 8th 2017, 15:32 |
hmic |
or clean it up :D |
# |
Dec 8th 2017, 15:32 |
hmic |
i'd try that. after the first erro |
# |
Dec 8th 2017, 15:29 |
jotpe |
or what would be a good solution? |
# |
Dec 8th 2017, 15:29 |
jotpe |
and then migrate every plugin step by step? |
# |
Dec 8th 2017, 15:28 |
hmic |
:P |
# |
Dec 8th 2017, 15:28 |
hmic |
jotpe: why not upgrade without plugins? |
# |
Dec 8th 2017, 15:27 |
jotpe |
when using the upgrade tool all command, my app is messed up. f.e. all plugin controllers are in app/src/Controllers and not in the corresponding plugin folder. Did i missed some preparation? |
# |
Dec 8th 2017, 14:33 |
hmic |
technically cou can register to listen to an event whenever you like to, as long as it happens before the event gets fired in your program flow |
# |
Dec 8th 2017, 14:32 |
hmic |
can/should be in the plugins bootstrap and plugin be loaded with bootstrap => true in the options array... |
# |
Dec 8th 2017, 14:32 |
hmic |
meder: usually it's bootstrap time, if you are registering with the global eventmanager |
# |
Dec 8th 2017, 14:31 |
meder |
i found i had to do that. cake 3 |
# |
Dec 8th 2017, 14:31 |
meder |
is there a way to register an event listener from another plugin without registering it in bootstrap.php? |
# |
Dec 8th 2017, 13:16 |
jotpe |
ok, ty @admad |
# |
Dec 8th 2017, 13:15 |
admad |
no need to add composer to the old cake2 app |
# |
Dec 8th 2017, 13:15 |
admad |
directly start with clean 3.5 skeleton app. |
# |
Dec 8th 2017, 13:10 |
jotpe |
should i set up composer first for my cake2 application? |
# |
Dec 8th 2017, 13:08 |
jotpe |
hey! I have a Cake 2.10.5 application with lots of custom plugins and want to migrate to Cake3. I'm reading the 3.0 Migration Guide. Should I uprade the core/app structure/orm directly to 3.5 or first to 3.0 and then step by step to 3.5? |
# |
Dec 8th 2017, 12:10 |
joopm |
so can i useinside if a controller's function parent::beforeRender()? |
# |
Dec 8th 2017, 12:08 |
hmic |
just call parent::beforeRender() before or after your additional logic in the beforeRender() method of your controller |
# |
Dec 8th 2017, 12:08 |
hmic |
and you can extend it in your controllers |
# |
Dec 8th 2017, 12:08 |
hmic |
it's both actually |
# |
Dec 8th 2017, 12:06 |
joopm |
oh i see beforeRender is an event and not a function |
# |
Dec 8th 2017, 12:05 |
joopm |
so i mean to use that special controller i want to filter |
# |
Dec 8th 2017, 12:04 |
joopm |
i need to filter users someway,i know i can have a beforeRender function in the appController but i need to use it in my own controller's "function" |
# |
Dec 8th 2017, 11:45 |
birdy247 |
so it just taking the 1st order clause |
# |
Dec 8th 2017, 11:45 |
birdy247 |
page=2andsort=Results.dnfanddirection=ASC#rAnchor |