# |
Nov 29th 2017, 09:08 |
hmic |
oh, what you are asking for is very well possible with a trait in the view that exposes a wrapper to that ;D |
# |
Nov 29th 2017, 09:02 |
inoas |
php is just not a nice language to do immutable stuff in $view->request = $view->request->withData('phone', preg_replace('/\s+/', '', $view->request->getData('phone'))); |
# |
Nov 29th 2017, 08:39 |
WyriHaximus |
Or a gist =D |
# |
Nov 29th 2017, 08:39 |
inoas |
would be these very few https://gist.github.com/inoas/4efb3687dd91bfc4337ff7bd31800b96 |
# |
Nov 29th 2017, 08:39 |
WyriHaximus |
inoas: sure can you email them? |
# |
Nov 29th 2017, 08:39 |
birdy247 |
morning |
# |
Nov 29th 2017, 08:37 |
inoas |
WyriHaximus: short: can you translate 9 english strings to dutch strings ;-) - I will contribute 7 to cakephp/localized - long: I am working on a dutch project and i am using cakephp/localized and it is a bit buggy (duplicate msgids) and I fixed all things and updated the po file through pot via bin/cake i18n extract |
# |
Nov 29th 2017, 08:32 |
slackebot2 |
values within the test by `Configure::write("Email", "");` (which works for other tests where i set different config values) but it doesn't work for the email class. any ideas how i can inject alternative config values for `Cake\Mailer\Email` within a single test method (without mocking the Email class)? also setting the modified config value in the setUp method before creating the instance of Email doesn't work |
# |
Nov 29th 2017, 08:32 |
felix |
hi, i want to test a class that uses `Cake\Mailer\Email`, creates a new instance of Email and gets me the `from` settings of the config. `$email = new Email('default');` `$from = $email->getFrom();` this gets me the correct config values. now, i would like to test the behaviour, when the from settings are not set correctly in the app.php config file (unlikely, but i want to have 100% coverage for this class). i tried to overwrite the config |
# |
Nov 29th 2017, 08:30 |
WyriHaximus |
inoas: yup |
# |
Nov 29th 2017, 08:29 |
sujay |
i am trying to move all the js down |
# |
Nov 29th 2017, 08:29 |
sujay |
is there a way to pass parameters from a view to default layout? |
# |
Nov 29th 2017, 08:09 |
rudy1976s |
good morning, anyone here is using mark story asset_compress plugin ? |
# |
Nov 29th 2017, 07:45 |
inoas |
Martin`: ;-)? |
# |
Nov 29th 2017, 07:43 |
inoas |
or marlinc ? |
# |
Nov 29th 2017, 07:43 |
inoas |
ceeram, you maybe ;)? |
# |
Nov 29th 2017, 07:43 |
inoas |
WyriHaximus: are you awake by any chance? |
# |
Nov 29th 2017, 06:44 |
dereuromark |
sure you can, just need a bit more manual config on top |
# |
Nov 29th 2017, 04:59 |
hari78 |
can i use my-existing db that is using non-conventional cakephp naming db |
# |
Nov 29th 2017, 04:58 |
hari78 |
i'm new to cakephp, n planning to use cakephp 3 |
# |
Nov 29th 2017, 04:57 |
hari78 |
hello everyone :) |
# |
Nov 29th 2017, 04:19 |
etipaced |
I guess I’m confused as to the difference between using accessors/mutators, and beforeMarshal(). |
# |
Nov 29th 2017, 04:17 |
etipaced |
In Cake 3, where is the appropriate place to manipulate form data prior to db persistence? If I try to use an accessor (_get) I’m noticing that $this->_properties is empty. |
# |
Nov 29th 2017, 03:11 |
chan |
hello! i take vertical photo with iphone and then i upload that photo on i create cakephp 2 website (coding is file upload) but photo is show by horizontal. why? Can i fix this problem? if you know, please give advice to me. thanks all. |
# |
Nov 29th 2017, 01:58 |
obinoob |
how it is supposed to validate an ajax request without an entity, in this particular case I'm executing a query? example: $conn->execute('INSERT into clients (name, nif) values (?, ?)', [$data->new_client_name, $data->new_client_nif]); |
# |
Nov 29th 2017, 01:42 |
obinoob |
anyone around? |
# |
Nov 29th 2017, 01:42 |
obinoob |
Can't spot anything wrong... but query is getting extra null places on values!?! |
# |
Nov 29th 2017, 01:41 |
obinoob |
$conn->newQuery()->insert(['name', 'nif'])->into('clients')->values([$data->new_client_name, $data->new_client_nif])->execute(); |
# |
Nov 29th 2017, 01:40 |
obinoob |
don't know why I'm starting to think that cake query builder has some kind of bug... this code should run but instead I'm getting: value list does not match column list! And I can spot a malformed query... but not sure if it's me check this out |
# |
Nov 29th 2017, 01:37 |
obinoob |
can I discard columns using query builder to insert new registry? |
# |
Nov 29th 2017, 00:27 |
inoas |
neither rsync nor nfs really work ... always caching or permission issues, this time everything worked for days and then suddenly stopped |
# |
Nov 29th 2017, 00:26 |
inoas |
vagrant ... |
# |
Nov 29th 2017, 00:26 |
inoas |
I really need to look into docker |
# |
Nov 29th 2017, 00:15 |
inoas |
but only if I enable debug true |
# |
Nov 29th 2017, 00:06 |
inoas |
whut |
# |
Nov 29th 2017, 00:06 |
inoas |
on failing modelless form validations |
# |
Nov 29th 2017, 00:06 |
inoas |
weirdo behavior or my vagrant box... 503... |
# |
Nov 28th 2017, 23:51 |
inoas |
ah... i get it |
# |
Nov 28th 2017, 23:51 |
inoas |
requirePresence seems to not work either oo |
# |
Nov 28th 2017, 23:49 |
joopm |
yooo |
# |
Nov 28th 2017, 23:48 |
inoas |
https://api.cakephp.org/3.4/source-class-Cake.Validation.Validator.html#977 |