# |
Dec 6th 2017, 10:22 |
joopm |
something like rsort in core php |
# |
Dec 6th 2017, 10:20 |
joopm |
how to force to change? |
# |
Dec 6th 2017, 10:20 |
joopm |
does not change |
# |
Dec 6th 2017, 10:20 |
joopm |
if i hard coded in the view ['direction' => 'desc'] than i have desc |
# |
Dec 6th 2017, 10:20 |
joopm |
everytime i have asc |
# |
Dec 6th 2017, 10:19 |
joopm |
->order([$this->request->query['sort']=>$this->request->query['direction']]) |
# |
Dec 6th 2017, 10:19 |
joopm |
thank you for help i have the following in the find method which is base of the paginate: |
# |
Dec 6th 2017, 10:18 |
hmic |
remove the hardcoded direction option from the link |
# |
Dec 6th 2017, 10:18 |
joopm |
doesnt change |
# |
Dec 6th 2017, 10:17 |
joopm |
but it is still remain asc |
# |
Dec 6th 2017, 10:17 |
hmic |
joopm, click the link again |
# |
Dec 6th 2017, 10:12 |
joopm |
i have oposite of the direction after sorting |
# |
Dec 6th 2017, 10:12 |
joopm |
i have this line in the view <?= $this->Paginator->sort('Tests.created',(__('created')),['direction' => 'asc']) ?> how can i arrange that |
# |
Dec 6th 2017, 10:10 |
saeideng |
solved |
# |
Dec 6th 2017, 10:08 |
saeideng |
manually |
# |
Dec 6th 2017, 10:08 |
saeideng |
how can I run App\\Console\\Installer::postInstall |
# |
Dec 6th 2017, 09:33 |
saeideng |
use water :-) |
# |
Dec 6th 2017, 09:31 |
saeideng |
:coffee: |
# |
Dec 6th 2017, 09:29 |
neon1024 |
It’s a shame we don’t have a decent coffee shop near our office |
# |
Dec 6th 2017, 09:28 |
neon1024 |
Yes, you can’t use a form inside a form |
# |
Dec 6th 2017, 09:28 |
neon1024 |
Morning |
# |
Dec 6th 2017, 09:28 |
neon1024 |
Yes, you can’t use a form inside a form |
# |
Dec 6th 2017, 09:28 |
neon1024 |
Lol |
# |
Dec 6th 2017, 09:07 |
saeideng |
not allowed to use a form inside other form in html |
# |
Dec 6th 2017, 09:06 |
saeideng |
i mean yes :slightly_smiling_face: |
# |
Dec 6th 2017, 09:06 |
danishkhan3621 |
Yes it is inside form |
# |
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 |