# |
Dec 6th 2017, 09:05 |
saeideng |
no |
# |
Dec 6th 2017, 09:05 |
saeideng |
hmic |
# |
Dec 6th 2017, 09:04 |
hmic |
danishkhan3621: you cant use postlink inside a form |
# |
Dec 6th 2017, 09:02 |
danishkhan3621 |
<?php echo $this->Form->postLink(" ", ['controller' => 'Categories', 'action' => 'delete', $cat->category_id],['confirm'=> __('Are you sure you want to delete # {0}?', $cat->category_id),'class'=>'btn btn-danger btn-flat fa fa-trash','title'=>__('Delete')],array('escape' => false)) ?> |
# |
Dec 6th 2017, 09:02 |
danishkhan3621 |
I got this error : '_Token' was not found in request data when deleting Data using postLink does anyone know why this is causing problem |
# |
Dec 6th 2017, 08:53 |
birdy247 |
maybe I should just unset the key before patching? |
# |
Dec 6th 2017, 08:52 |
birdy247 |
I tried setting the field to dirty before patching but no luck |
# |
Dec 6th 2017, 08:52 |
birdy247 |
If I submit a form, with no additional_multiple_options, is there an easy way to make cake remove these? |
# |
Dec 6th 2017, 08:51 |
birdy247 |
Additions hasMany AdditionMultipleOptions with a strategy of replace. |
# |
Dec 6th 2017, 08:35 |
joopm |
its seems i have to read from the url and pass it for the find method the order |
# |
Dec 6th 2017, 08:34 |
joopm |
but after gggoling the half of yesterday |
# |
Dec 6th 2017, 08:34 |
joopm |
i thought that defining the sort(i mean Assoc1.Assoc2 .....etc) will be enough to sort the columns |
# |
Dec 6th 2017, 08:33 |
joopm |
i got trouble with paginating associated models |
# |
Dec 6th 2017, 08:29 |
birdy247 |
Morning |
# |
Dec 6th 2017, 08:11 |
joopm |
hello there |
# |
Dec 5th 2017, 21:23 |
ivansosajigga |
since my worker script is already in php, i have the data there in memory, and it's a stretch but maybe it's more efficient to call whatever the shell would call from the CakePHP app, directly from the worker script instead |
# |
Dec 5th 2017, 21:22 |
ivansosajigga |
@hmic i suppose to make my question clearer, i'm wondering is there is a more efficient way of doing that inter-process communication than piping in the json data via calling the shell with ./cake MyShell |
# |
Dec 5th 2017, 20:34 |
admad |
gn |
# |
Dec 5th 2017, 20:31 |
admad |
thx |
# |
Dec 5th 2017, 20:29 |
inoas |
https://github.com/filamentgroup/loadCSS I am using for http1 loading of nonblocking css |
# |
Dec 5th 2017, 20:28 |
inoas |
obvisouly you need to enable H2 in apache/nginx |
# |
Dec 5th 2017, 20:26 |
inoas |
https://tools.pingdom.com/#!/djcElb/cakephp.org |
# |
Dec 5th 2017, 20:26 |
inoas |
100% on pingdom |
# |
Dec 5th 2017, 20:26 |
inoas |
and for 100% page speed I modify UrlHelper to inject hashes instead of timestamp query strings |
# |
Dec 5th 2017, 20:24 |
inoas |
also I do this... https://gist.github.com/inoas/447cfd73d15c0cf3f0e6cf463a0ee13c#gistcomment-2276851 but mod_pagespeed can do that also |
# |
Dec 5th 2017, 20:23 |
inoas |
if you leave criticism in comments I am ok, but I was trying to help you out on some ideas on http2 + http1 optimization paths for pagespeed/pingdom |
# |
Dec 5th 2017, 20:23 |
inoas |
admad https://gist.github.com/inoas/447cfd73d15c0cf3f0e6cf463a0ee13c |
# |
Dec 5th 2017, 20:22 |
admad |
inoas: pretty please |
# |
Dec 5th 2017, 20:20 |
maneken |
inoas: what do you mean? My server will run all the time along with the cake app |
# |
Dec 5th 2017, 20:19 |
inoas |
admad well I can set it up for you again |
# |
Dec 5th 2017, 20:19 |
admad |
inoas: hey, you deleted that gist, i had only bookmarked it not copied :slightly_smiling_face: |
# |
Dec 5th 2017, 20:17 |
inoas |
but it means your app server needs to run all time persistent |
# |
Dec 5th 2017, 20:17 |
inoas |
websockets will get around that |
# |
Dec 5th 2017, 20:17 |
inoas |
it will need to |
# |
Dec 5th 2017, 20:17 |
maneken |
hmic: Using queue and xhr won't need to poll the server in intervals? |
# |
Dec 5th 2017, 20:15 |
saeideng |
thank you for your point |
# |
Dec 5th 2017, 20:14 |
inoas |
yeah :) |
# |
Dec 5th 2017, 20:14 |
saeideng |
I forgot to add ``` <Directory /var/www/html> Options Indexes FollowSymLinks MultiViews AllowOverride All Require all granted </Directory> ``` into ssl config |
# |
Dec 5th 2017, 20:14 |
inoas |
:) |
# |
Dec 5th 2017, 20:13 |
saeideng |
:-) |
# |
Dec 5th 2017, 20:13 |
saeideng |
solved |