# |
Dec 4th 2017, 10:18 |
inoas |
and that's not recommended practise |
# |
Dec 4th 2017, 10:17 |
inoas |
cause assetUrl() creates query string cache busting |
# |
Dec 4th 2017, 10:17 |
inoas |
I ll also need to do some rewrites in a second step |
# |
Dec 4th 2017, 10:17 |
inoas |
well that would be okay too if I can handle it at apache .htaccess level |
# |
Dec 4th 2017, 10:16 |
hmic |
so really static content, without a cake request cycle at all |
# |
Dec 4th 2017, 10:16 |
inoas |
because some optimization tools complain (and rightly so) that for static assets there is no need to send cookie overhead |
# |
Dec 4th 2017, 10:15 |
inoas |
and only answers to some webroot folders like /assets /files /media etc |
# |
Dec 4th 2017, 10:15 |
inoas |
but via a different domain, that does not set a session |
# |
Dec 4th 2017, 10:15 |
inoas |
I just want to run static content off the same web server |
# |
Dec 4th 2017, 10:15 |
inoas |
huh what? |
# |
Dec 4th 2017, 10:15 |
hmic |
inoas, static content vs. no session - so no individual content is 2 different beasts |
# |
Dec 4th 2017, 10:14 |
inoas |
Cake\Network\Session::start() seems to start it |
# |
Dec 4th 2017, 10:13 |
inoas |
(for a domain like static.DOMAIN.tld) |
# |
Dec 4th 2017, 10:13 |
inoas |
What's the best practise / how to disable Cakephp3 sessions |
# |
Dec 4th 2017, 09:37 |
jkpatel291289 |
hi, i want to add where user_id = current_userid in all find() calls,what is the right way to do this? |
# |
Dec 4th 2017, 09:27 |
dereuromark |
@thomasnucleus I have once written sth: https://www.dereuromark.de/2012/12/15/user-switch-for-cakephp-apps/ |
# |
Dec 4th 2017, 09:15 |
Gijs_ |
Did you read my question by any change? |
# |
Dec 4th 2017, 09:13 |
Gijs_ |
Morning neon1024! |
# |
Dec 4th 2017, 09:12 |
neon1024 |
Morning all |
# |
Dec 4th 2017, 09:06 |
Gijs_ |
how can I arrange that? |
# |
Dec 4th 2017, 09:06 |
Gijs_ |
Hi, I am using $folder->copy(['skip' => '...']) but I have a folder I want to skip that is on the root of my project, the same folder name in a subfolder should not be skipped |
# |
Dec 4th 2017, 03:35 |
admad |
hey if you like writing extra code even when better constructs are provided, so be it :slightly_smiling_face: |
# |
Dec 4th 2017, 03:35 |
thomasnucleus |
Is there a cakephp 3 plugin for logging in as another user? Or is there a guide on how to do it? Didn't have much luck finding something recent online |
# |
Dec 4th 2017, 03:09 |
cpierce |
thanks @admad - I would have did that but I ended up using TableRegistry and it worked fine so ¯\_(ツ)_/¯ |
# |
Dec 4th 2017, 03:08 |
admad |
@cpierce there's no need to use TableRegistry in shells, just use loadModel() |
# |
Dec 4th 2017, 01:10 |
cpierce |
namespaces |
# |
Dec 3rd 2017, 23:04 |
ludger.a |
the answer is "use". Have never seen it anywhere... PHP is strange :slightly_smiling_face: |
# |
Dec 3rd 2017, 22:29 |
ludger.a |
I feel stupid for this question, but I just don't find a solution... |
# |
Dec 3rd 2017, 22:29 |
ludger.a |
How do I get data into the Collection::filter function? I want to filter a collection if the id of the stored object is in an array. How do I get the array inside the filter function? |
# |
Dec 3rd 2017, 20:58 |
birdy247 |
evening |
# |
Dec 3rd 2017, 20:40 |
saeideng |
https://book.cakephp.org/3.0/en/views/helpers/html.html#Cake\View\Helper\HtmlHelper::setTemplates |
# |
Dec 3rd 2017, 20:38 |
saeideng |
use custom template if you need |
# |
Dec 3rd 2017, 20:23 |
aro |
i cant figure out what template i need to change |
# |
Dec 3rd 2017, 20:23 |
aro |
how do i do that |
# |
Dec 3rd 2017, 20:23 |
aro |
i ened to remove the label that encompasses the whole block |
# |
Dec 3rd 2017, 20:23 |
aro |
i have a block of checkboxes set by a multiple=> 'checkbox' |
# |
Dec 3rd 2017, 18:52 |
cpierce |
thanks for letting me rubber duck though |
# |
Dec 3rd 2017, 18:52 |
cpierce |
yeah i had that ... it was cache i guess ... it finally started working without me changing anything |
# |
Dec 3rd 2017, 18:41 |
saeideng |
`use Cake\ORM\TableRegistry;` |
# |
Dec 3rd 2017, 18:40 |
saeideng |
use .... |
# |
Dec 3rd 2017, 18:38 |
cpierce |
I've got my use in there so i'm not sure. |