webeweb / jquery-datatables-bundle Goto Github PK
View Code? Open in Web Editor NEWIntegrate jQuery Datatable with Symfony 2 and more
License: MIT License
Integrate jQuery Datatable with Symfony 2 and more
License: MIT License
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 ?
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.