# |
Nov 29th 2017, 09:35 |
WyriHaximus |
inoas: sure, just wrapping something up at work and will look at it after that. Should be before noon |
# |
Nov 29th 2017, 09:30 |
joopm |
thankss |
# |
Nov 29th 2017, 09:30 |
joopm |
okey i have an idea now |
# |
Nov 29th 2017, 09:29 |
hmic |
the action you redirect to renders something, not the action you redirect from. it just tells the browser where to go to to get the information to show |
# |
Nov 29th 2017, 09:29 |
hmic |
you dont |
# |
Nov 29th 2017, 09:28 |
joopm |
i want to render the layout and redirect the user in the same time how to do that? |
# |
Nov 29th 2017, 09:27 |
joopm |
generates the layout based on the user |
# |
Nov 29th 2017, 09:27 |
joopm |
now i have the login function,which is redirect to one specific page,i have the MenuBuilder function which |
# |
Nov 29th 2017, 09:26 |
joopm |
thank you hmic i see |
# |
Nov 29th 2017, 09:25 |
hmic |
nothing will be rendered on a redirect |
# |
Nov 29th 2017, 09:25 |
hmic |
you need to set the layout there |
# |
Nov 29th 2017, 09:25 |
hmic |
joopm, if you redirect you start a new request |
# |
Nov 29th 2017, 09:23 |
joopm |
do this 2 in the same time |
# |
Nov 29th 2017, 09:23 |
joopm |
but i want to set the layout by : $this->viewBuilder()->layout |
# |
Nov 29th 2017, 09:23 |
joopm |
for example i have the login function,now the return is $this->redirect.... |
# |
Nov 29th 2017, 09:22 |
inoas |
WyriHaximus: can you ping me when you took a look - it should be very quick |
# |
Nov 29th 2017, 09:22 |
joopm |
is it possible to have 2 commands in the return of a function? |
# |
Nov 29th 2017, 09:21 |
joopm |
hello there |
# |
Nov 29th 2017, 09:18 |
rudy1976s |
Good morning to everyone here: I need help with Mark Story AssetCompress plugin |
# |
Nov 29th 2017, 09:12 |
hmic |
i'm only not quite sure how a good api would need to look like: ImmutableAccessTrait::change($immutableObjectNameAsString, $methodNameAsString, ArrayObject $methodArgs)? |
# |
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 :) |