Grocery crud pagination not working if I use utf8_decode on $row->{$column->field_name} in...
up vote
0
down vote
favorite
I have some fields that I save in database after I apply utf8_encode on them.
When I display them on grocey crud list with bootstrap theme, I apply utf8_decode, only the pagination stops working properly : ajax_list return nothing and the previous page remains displayed
This is the line of code I modified in list_tbody.php (bootstrap theme):
echo $row->{$column->field_name} != '' ? utf8_decode($row->{$column->field_name}) : ' ' ;
If I remove utf8_decode, pagination works fine, but I need to do the decoding somehow ...
grocery-crud
add a comment |
up vote
0
down vote
favorite
I have some fields that I save in database after I apply utf8_encode on them.
When I display them on grocey crud list with bootstrap theme, I apply utf8_decode, only the pagination stops working properly : ajax_list return nothing and the previous page remains displayed
This is the line of code I modified in list_tbody.php (bootstrap theme):
echo $row->{$column->field_name} != '' ? utf8_decode($row->{$column->field_name}) : ' ' ;
If I remove utf8_decode, pagination works fine, but I need to do the decoding somehow ...
grocery-crud
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have some fields that I save in database after I apply utf8_encode on them.
When I display them on grocey crud list with bootstrap theme, I apply utf8_decode, only the pagination stops working properly : ajax_list return nothing and the previous page remains displayed
This is the line of code I modified in list_tbody.php (bootstrap theme):
echo $row->{$column->field_name} != '' ? utf8_decode($row->{$column->field_name}) : ' ' ;
If I remove utf8_decode, pagination works fine, but I need to do the decoding somehow ...
grocery-crud
I have some fields that I save in database after I apply utf8_encode on them.
When I display them on grocey crud list with bootstrap theme, I apply utf8_decode, only the pagination stops working properly : ajax_list return nothing and the previous page remains displayed
This is the line of code I modified in list_tbody.php (bootstrap theme):
echo $row->{$column->field_name} != '' ? utf8_decode($row->{$column->field_name}) : ' ' ;
If I remove utf8_decode, pagination works fine, but I need to do the decoding somehow ...
grocery-crud
grocery-crud
asked 2 days ago
Andreea Onica
579
579
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53372848%2fgrocery-crud-pagination-not-working-if-i-use-utf8-decode-on-row-column-fiel%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown