Giter VIP home page Giter VIP logo

jquery-datatables-bundle's People

Contributors

webeweb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jquery-datatables-bundle's Issues

Can't display datatable with data when export is working

Hello, I've installed the bundle successfully created my provider and extended my repository and when I got to the route "datatables/[name]/export" I do get a CSV with all the data, right columns etc but I can't get to have the web version of the datatable
I get an error saying :

get_class(): Argument #1 ($object) must be of type object, null given on \vendor\webeweb\jquery-datatables-bundle\Controller\AbstractController.php:291

and all I'm doing in the controller is :

$dtWrapper = $this->getDataTablesProvider("app.datatables.providers.my_datatable");
return $this->render('home/datatable.html.twig',["dtWrapper" => $dtWrapper]);

services.yaml looks like :

    app.datatables.providers.my_datatable
        class: App\Provider\MyDataTableProvider
        tags:
            - { name: "wbw.jquery.datatables.provider" }

The view looks like this :

{% extends 'base.html.twig' %}

{% block body %}
    {% include 'home/header.html.twig' %}
    {{ renderDataTables(dtWrapper) }}
{% endblock %}
{% block stylesheets %}
    {{ parent() }}
    {% include "@WBWCore/assets/_stylesheets.html.twig" %}
    {% include "@WBWBootstrap/assets/_stylesheets.html.twig" %}
    {% include "@WBWJQueryDataTables/assets/_stylesheets.html.twig" %}
{% endblock %}

{% block javascripts %}
    {{ parent() }}
    {% include "@WBWCore/assets/_javascripts.html.twig" %}
    {% include "@WBWBootstrap/assets/_javascripts.html.twig" %}
    {% include "@WBWJQueryDataTables/assets/_javascripts.html.twig" %}
    {{ jQueryDataTables(dtWrapper) }}
{% endblock %}
{% block title %}Page d'exemple de DataTable!{% endblock %}

So what seem to be the problem ?

Deprecation with Auto-Injection

User Deprecated: Auto-injection of the container for "WBW\Bundle\JQuery\DataTablesBundle\Controller\DataTablesController" is deprecated since Symfony 4.2. Configure it as a service instead.

This is giving a deprecated call, can this be ignored?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.