Robert Blasco Villarroya Robert Blasco Villarroya - 5 months ago 19
jQuery Question

Get var from url codeigniter+datatables plugin

I'm using the DataTables plugin for paginate the query on DB. The problem came when i want get the parameter '

draw
' (for example) from the url:

http://localhost/promovilbackend/index.php?/Comercial/getTar/&draw=2&columns%5B0%5D%5Bdata%5D=Empresa&etc&etc


i tryed with
$_GET['draw']
into the function getTar but they return undefined.

any idea?

Answer

try to change getTar/&draw=2 to getTar?draw=2