Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paginator numbers location error #12

Closed
thiagojeffery opened this issue Jun 26, 2017 · 1 comment
Closed

Paginator numbers location error #12

thiagojeffery opened this issue Jun 26, 2017 · 1 comment
Labels

Comments

@thiagojeffery
Copy link

  • BootstrapUI Version: 0.62

I baked the index and the Paginator->Numbers was not between "First and Last".

The code for PaginatorHelper is:
public function numbers(array $options = [])
{
$class = 'pagination';
$options += [
'class' => $class,
'after' => '',
'size' => null,
];
$options['class'] = implode(' ', (array)$options['class']);
if (!empty($options['size'])) {
$options['class'] .= " {$class}-{$options['size']}";
}
$options += [
'before' => '

    ',
    ];

    To fix it I did:
    public function numbers(array $options = [])
    {
    $class = 'pagination';
    $options += [
    'class' => $class,
    //'after' => '

',
'size' => null,
];
$options['class'] = implode(' ', (array)$options['class']);
if (!empty($options['size'])) {
$options['class'] .= " {$class}-{$options['size']}";
}
$options += [
//'before' => '
    ',
    ];

@elboletaire
Copy link
Owner

The PaginatorHelper is part of the BootstrapUI package. Open an issue there if you think there's one with their helper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants