# |
Nov 29th 2017, 11:52 |
obinoob |
Yesterday I have placed here in the channel a few questions regarding the query builder. I have found a few inconsistencies and before I open a issue I would like to have some help in order to clarify my problem. So first question can i discard discard columns using query builder when inserting a new registry? |
# |
Nov 29th 2017, 11:52 |
admad |
joris_: you will have to attach the listener to the global event manager instance |
# |
Nov 29th 2017, 11:35 |
joris_ |
It never reaches the code when the event is dispatched |
# |
Nov 29th 2017, 11:34 |
joris_ |
Attaching something to the `Controller.beforeRedirect` event from Middleware does not work? |
# |
Nov 29th 2017, 10:55 |
fvanhest |
Hi Guys, I’m having some trouble with the naming of shells and tasks. I have a shell called ChangeSomething and a task named ChangeSomethingFoo the cli command will be bin/cake change_something change_something_foo, but I rather have bin/cake change_something foo. How do I configure this in the getOptionParser? Or should I be using another way? |
# |
Nov 29th 2017, 10:54 |
cakephp344 |
ok thank you |
# |
Nov 29th 2017, 10:52 |
hmic |
this is call the relation Owner and User and use the className option to tell it which table class to use |
# |
Nov 29th 2017, 10:51 |
hmic |
CakeBot1, just alias it in the relation setup with the respective name Owner and User... |
# |
Nov 29th 2017, 10:49 |
cakephp344 |
I'd like to use the same table for owner and user |
# |
Nov 29th 2017, 10:49 |
cakephp344 |
table: buldings . one building has one owner and one user |
# |
Nov 29th 2017, 10:46 |
cakephp344 |
sorry two fieds linked |
# |
Nov 29th 2017, 10:46 |
cakephp344 |
what is the name convenction in that case? |
# |
Nov 29th 2017, 10:45 |
cakephp344 |
my table has two fields liked to the same table |
# |
Nov 29th 2017, 10:45 |
cakephp344 |
hi all |
# |
Nov 29th 2017, 10:24 |
rudy1976s |
I need a bit of help with AssetCompress plugin |
# |
Nov 29th 2017, 09:52 |
neon1024 |
Morning all |
# |
Nov 29th 2017, 09:40 |
inoas |
:) |
# |
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 |