Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Symfony datatables

[es] :: PHP :: Symfony datatables

[ Pregleda: 5227 | Odgovora: 3 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

bane1234

Član broj: 327433
Poruke: 41
212.200.101.*



+1 Profil

icon Symfony datatables17.05.2016. u 16:32 - pre 95 meseci
Nisam pronasao u dokumentaciji za sq datatable bundle kako napisati custom query, tj radi super kad treba pokupiti sve iz tabele(entitet) ali ne vidim(ili sam prevideo :) ) mogucnost da se ti rezultati isfiltriraju recimo po nekom parametru(recimo neki where uslov).
Ovo radi ali mi prikaze sve kupce, kako da prikazem samo kupce po nekom uslovu i slicno...
public function indexAction()
{
$datatable = $this->get('app.datatable.buyer');
$datatable->buildDatatable();

return $this->render('AppBundle:Buyer:list.html.twig', array(
'datatable' => $datatable,
));
}

/**
* @Route("/results", name="buyer_results")
*/
public function indexResultsAction()
{
$datatable = $this->get('app.datatable.buyer');
$datatable->buildDatatable();

$query = $this->get('sg_datatables.query')->getQueryFrom($datatable);

return $query->getResponse();
}
 
Odgovor na temu

bane1234

Član broj: 327433
Poruke: 41
*.cnt.rs.



+1 Profil

icon Re: Symfony datatables18.05.2016. u 14:58 - pre 95 meseci
Nasao :)
https://github.com/stwe/Datata.../master/Resources/doc/query.md
 
Odgovor na temu

dakipro
Dalibor Jovic
Web Developer
Bergen, Norway

Moderator
Član broj: 31848
Poruke: 1792
*.connect.netcom.no.

Sajt: norway.dakipro.com


+190 Profil

icon Re: Symfony datatables18.05.2016. u 15:09 - pre 95 meseci
Hvala sto si podelio odgovor, može koristiti i ostalima
 
Odgovor na temu

Mister Big Time
The Consigliere
enterparadajz
Belgrade

Član broj: 15306
Poruke: 4747

Sajt: www.go2bed.net


+43 Profil

icon Re: Symfony datatables10.07.2016. u 23:20 - pre 93 meseci
ORM naš nasušni.

 
Odgovor na temu

[es] :: PHP :: Symfony datatables

[ Pregleda: 5227 | Odgovora: 3 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.