# |
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 |
# |
Dec 8th 2017, 08:38 |
birdy247 |
I also perform a check in the controller to see if the file contains specific headers |
# |
Dec 8th 2017, 08:38 |
birdy247 |
I currently validate on the file type, mime type etc.. |
# |
Dec 8th 2017, 08:38 |
birdy247 |
I allow a user to upload a excel file |
# |
Dec 8th 2017, 08:37 |
birdy247 |
Morning |
# |
Dec 8th 2017, 08:26 |
admad |
seems the query size is exceedingly the limit set in your mysql server |
# |
Dec 8th 2017, 08:15 |
makallio85 |
Tried already disable AV software but no success. Couldn't find anything that much related for this issue from google |
# |
Dec 8th 2017, 08:14 |
makallio85 |
Any idea, why am I getting this kinda error https://gist.github.com/makallio85/3052aa70d5e93e44a52ce5d55e873271 My setup is quite a basic XAMPP installation with win7, PHP7.1 and MariaDB 10.1.28 |
# |
Dec 8th 2017, 00:07 |
meder |
ah. had to register it in bootstrap |
# |
Dec 7th 2017, 23:59 |
meder |
but what do i have to do to get it to work though? |