# |
Jun 28th 2017, 14:16 |
jarard |
I've added admin prefix routing to my project, but now I'm getting a re-direct to login when I brwose to admin/properties |
# |
Jun 28th 2017, 14:11 |
Leonardo_0112 |
right, i'll try create a composer package |
# |
Jun 28th 2017, 14:10 |
dereuromark |
copy and pasting into plugins dir also doesnt really get you any more updates easily then |
# |
Jun 28th 2017, 14:10 |
dereuromark |
but what you are trying to do sounds wacky, at best. |
# |
Jun 28th 2017, 14:09 |
dereuromark |
you can also PR any abstract additions that would help you. |
# |
Jun 28th 2017, 14:09 |
dereuromark |
either fork it and use that, or make your own composer package. |
# |
Jun 28th 2017, 14:09 |
dereuromark |
you are doing it wrong then. |
# |
Jun 28th 2017, 14:09 |
Leonardo_0112 |
actually it's a cart plugin that store products based on its ID as session key. I'd like to use 'code' instead ID. If I change two lines from a file in vendor it works, but every time when run composer update or install it'll be lost |
# |
Jun 28th 2017, 14:08 |
dereuromark |
also, plugins dir is reserved for non-installed (repo-own) ones, code directly there without composer usage. |
# |
Jun 28th 2017, 14:05 |
dereuromark |
ask yourself - that would quickly resolve to "you really dont need to" usually :slightly_smiling_face: |
# |
Jun 28th 2017, 14:05 |
dereuromark |
why? |
# |
Jun 28th 2017, 14:02 |
Leonardo_0112 |
In cake3, there is a plugin installed in vendor folder via composer. I'd like to install it in /plugins. How can I do it? |
# |
Jun 28th 2017, 13:56 |
neon1024 |
I use an if statement myself |
# |
Jun 28th 2017, 13:51 |
jarard |
should I just add a conditional statement to beforeFilter or is that inefficient? |
# |
Jun 28th 2017, 13:51 |
jarard |
but this will add the theme site-wide, any suggestions how I can hook this up to admin routes? |
# |
Jun 28th 2017, 13:50 |
jarard |
I want to use a theme for my admin, the package says to add to the beforeFIlter of AppController: $this->viewBuilder()->theme('Gentelella'); |
# |
Jun 28th 2017, 13:44 |
neon1024 |
@gutts That might be \Cake\ORM\ResultSet I think, you might need to check that one :slightly_smiling_face: |
# |
Jun 28th 2017, 13:44 |
saeideng |
i think i can not using `orWhere(c,d)->orWhere(e,f)` for `or(a and b) or (c and d) or (e and f)` |
# |
Jun 28th 2017, 13:43 |
saeideng |
i think i can not using `or(a and b) or (c and d) or (e and f)` for `or(a and b) or (c and d) or (e and f)` |
# |
Jun 28th 2017, 13:42 |
gutts |
formatResults** |
# |
Jun 28th 2017, 13:42 |
gutts |
@neon1024 what about resultFormatter? |
# |
Jun 28th 2017, 13:38 |
chris-andre |
@neon1024 Yep, it's all there :slightly_smiling_face: |
# |
Jun 28th 2017, 13:37 |
neon1024 |
@jay I don’t think there is any intention to ruin it ;) |
# |
Jun 28th 2017, 13:36 |
saeideng |
i use this form `orWhere(c,d)->orWhere(e,f)` |
# |
Jun 28th 2017, 13:36 |
neon1024 |
Thanks @chris-andre , this also looks super useful, https://book.cakephp.org/3.0/en/orm/validation.html#using-a-different-validation-set-for-associations |
# |
Jun 28th 2017, 13:36 |
saeideng |
but this returned `.... or c or d or e or f` query |
# |
Jun 28th 2017, 13:35 |
jay |
Please don't ruin it ;P |
# |
Jun 28th 2017, 13:35 |
jay |
wow you guys got phinx. |
# |
Jun 28th 2017, 13:35 |
saeideng |
i want `or(a and b) or (c and d) or (e and f)` query by this `orWhere()` |
# |
Jun 28th 2017, 13:34 |
chris-andre |
@neon1024 https://book.cakephp.org/3.0/en/orm/validation.html#using-a-different-validation-set |
# |
Jun 28th 2017, 13:33 |
gutts |
what would be the diff between mapReduce and a virtual field? technically what's the diff? |
# |
Jun 28th 2017, 13:33 |
gutts |
ah |
# |
Jun 28th 2017, 13:33 |
neon1024 |
Yes, the map reduce stuff is iterators |
# |
Jun 28th 2017, 13:33 |
saeideng |
but result is incorrect |
# |
Jun 28th 2017, 13:33 |
gutts |
because at that point, it's a ReplaceIterator, right neon2014? |
# |
Jun 28th 2017, 13:32 |
neon1024 |
Yes, you can |
# |
Jun 28th 2017, 13:32 |
saeideng |
can we use `orWhere()->orWhere->orWhere()` ? |
# |
Jun 28th 2017, 13:32 |
neon1024 |
Sounds to me like either a virtual field, or a mapReduce |
# |
Jun 28th 2017, 13:32 |
gutts |
i want to map and specify a description and override it with a child that's contained if it's there, basically.. but i want to specify it in my custom finder |
# |
Jun 28th 2017, 13:31 |
saeideng |
hi |
# |
Jun 28th 2017, 13:31 |
gutts |
kind of a stupid question, but can I specify a callback for a Cake\ORM\Query that happens when it executes and not at declaration? |