R
R
Roman L.2015-05-14 11:26:38
css
Roman L., 2015-05-14 11:26:38

More than one knp_paginator configuration?

Greetings, but you can use several configurations, using the knp_paginator example, for a project.
For example, several bundles - FRONT and BACK. each has its own paginator settings.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Alexander, 2018-06-07
@pi4yyy

The links do not have a color, so it goes by default. I have the entire bottom menu in blue.

A
Anton Plawkevich, 2018-06-07
@antowa_plawkevich

.class li a:link {
color: #fff; - до нажатия
}

.class li a:visited {
color: #000; - цвет ссылки после того как на неё нажали
}

A
Alexander, 2018-06-08
@AleksandrB

And you can find out what figs are loaded there for a long time? The site is small, the pictures are not heavy. Or is the server of the Russian site located somewhere in the USA?
And on the question: put the right color for the "a" tags.

D
Denis, 2015-05-14
@RomanLag

Option one

<?php

    $paginator  = $this->get('knp_paginator');

    $paginator->setDefaultPaginatorOptions(array(
        'pageParameterName'           => string,
        'sortFieldParameterName'      => string,
        'sortDirectionParameterName'  => string,
        'filterFieldParameterName'    => string,
        'filterValueParameterName'    => string,
        'distinct'                    => boolean,
        //etc...
    ));

Add another entry point to the application.
Listener
Create your own service (inherited or using knp)
You can specify some parameters directly in the template.
Create your own Pagination and make it the heir of KnpPaginationBundle by adding anything you like there.
In the controller, create an instance of the Knp\Component\Pager\Paginator class (or one that you like more), configure and use it with handles.
Push all pagination into doctrine filters.

Q
Quber, 2015-05-14
@Quber

Can

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question