8000 Paginator rendering problem in ZfcTwig 1.2 · Issue #102 · ZF-Commons/ZfcTwig · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Paginator rendering problem in ZfcTwig 1.2 #102
Open
@chocochaos

Description

@chocochaos

Pagination controls worked fine with ZfcTwig 1.1.5. However, when I update to ZfcTwig 1.2.0 or higher the partial template appears not to be rendering any more.

Code in the template to invoke the pagination control:

    {{ paginationControl(data, 'sliding', {0 : 'partial/paginator.twig', 1 : 'Logboek'}, {'route' : 'logboek', 'orderBy' : orderBy, 'order' : order}) }}

In partial/paginator.twig:

    {% if pageCount %}
        <div class="pagination">
            {% if previous is defined %}
                <a href="{{ url(route, {'entity' : entity, 'order_by' : orderBy, 'order' : order, 'page' : previous}) }}"
                   class="prev">&laquo;
                    vorige pagina</a>
            {% endif %}
            {% for page in pagesInRange %}
                {% if page != current %}
                    <a href="{{ url(route, {'entity' : entity, 'order_by' : orderBy, 'order' : order, 'page' : page}) }}">{{ page }}</a>
                {% else %}
                    <a class="active">{{ page }}</a>
                {% endif %}
            {% endfor %}
            {% if next is defined %}
                <a href="{{ url(route, {'entity' : entity, 'order_by' : orderBy, 'order' : order, 'page' : next}) }}"
                   class="prev">volgende
                    pagina &raquo;</a>
            {% endif %}
        </div>
    {% endif %}

This is what it looks like with ZfcTwig 1.1.5:
zfctwig 1 1 5

This is what it looks like with ZfcTwig 1.2.0:
zfctwig 1 2 0

I have tried these tests with several versions of twig and zend framework, none seem to work properly with ZfcTwig 1.2.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0