Skip to content

Instantly share code, notes, and snippets.

View ADCPD's full-sized avatar
:octocat:
I may be slow to respond.

Amir Dhaouadi ADCPD

:octocat:
I may be slow to respond.
View GitHub Profile
@ADCPD
ADCPD / datagrid_filter.php
Created September 28, 2019 16:16
Filter in array using one or many params
<?php
/**
* If one or more params[] element exists in data[].
* Our function will return the elements conserner
*/
$params = [
"nom" => 'titof',
"prenom" => 'edoe',
@ADCPD
ADCPD / Demande.php
Last active June 1, 2018 10:15
How to use Radio Field with EntityType Symfony 3
<?php
namespace DemandeBundle\Form;
class DemandeType extends AbstractType {
/** @var EntityManagerInterface $em */
private $em;
/**
*
* @param EntityManagerInterface $em
@ADCPD
ADCPD / Utilisateurs.php
Last active May 13, 2018 22:09
Working with PostgreSQL & Symfony2.8 (Working Model with basic configuration)
<?php
namespace AuthentificationBundle\Entity;
use AppBundle\Communs\Consts\StaticConst;
use AppBundle\Communs\Traits\DateTimeTools;
use Doctrine\ORM\Mapping as ORM;
/**
* Class utilisateurs