# |
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 |
# |
Dec 8th 2017, 11:44 |
birdy247 |
It then appends this to the URL string |
# |
Dec 8th 2017, 11:44 |
birdy247 |
Which seems to work until I click the next page button |
# |
Dec 8th 2017, 11:44 |
birdy247 |
File uploaded https://cakesf.slack.com/files/U0T295QA3/F8B33M87J/-.php / https://slack-files.com/T053DPNCM-F8B33M87J-d893210da7 |
# |
Dec 8th 2017, 11:44 |
birdy247 |
I have this |
# |
Dec 8th 2017, 11:44 |
birdy247 |
Can pgaintae have multiple order clauses? |
# |
Dec 8th 2017, 11:22 |
joopm |
okey thank you |
# |
Dec 8th 2017, 11:20 |
hmic |
a login does usually not do that |
# |
Dec 8th 2017, 11:20 |
hmic |
you need to save an entity for the field to get updated |
# |
Dec 8th 2017, 11:20 |
hmic |
saved! |
# |
Dec 8th 2017, 11:20 |
joopm |
will this enough to update the 'update' field when the user is inlogged? |
# |
Dec 8th 2017, 11:19 |
joopm |
if i have this line in the UsersTable : $this->addBehavior('Timestamp'); |
# |
Dec 8th 2017, 11:19 |
joopm |
okey thank you |
# |
Dec 8th 2017, 11:17 |
hmic |
either or |
# |
Dec 8th 2017, 11:17 |
joopm |
is that right that 'updated' and 'modified' fields are both them correct to use for timestamp behaviour? |
# |
Dec 8th 2017, 11:16 |
joopm |
ello there |
# |
Dec 8th 2017, 09:03 |
birdy247 |
Works a treat |
# |
Dec 8th 2017, 09:03 |
birdy247 |
:slightly_smiling_face: |
# |
Dec 8th 2017, 08:51 |
hmic |
so you can access the file array php provides you with |
# |
Dec 8th 2017, 08:51 |
hmic |
validation runs before marshalling |
# |
Dec 8th 2017, 08:46 |
birdy247 |
Hopefully I can get the headers from the imported file in there |
# |
Dec 8th 2017, 08:44 |
hmic |
yes |
# |
Dec 8th 2017, 08:40 |
birdy247 |
This would be a custom validation rule? |
# |
Dec 8th 2017, 08:39 |
birdy247 |
I want to move this into a validation rule |