Welcome Guest, Not a member yet? Register   Sign In
CI Ignited-Datatables, wrong variable returning

Hi, I'm using version 1.15 of the Ignited-Datatables to get data to JS Datatables using Ajax.

The problem I'm having is with the `edit_column` and `add_column` functions.

They are using a `$1` to get the variables inside the functions, like so:

edit_column('stato', renderStato('$1'), 'stato')
Where the `renderStato('$1')` function goes like this:

    function renderStato($stato){

        if($stato == 1 || $stato == '1'){
            $stato = '-';

        return $stato;


Looks like the $1 variable is not getting validated correctly, as $1 is set to 1 but the library sees it as $1, so is never true.
How can I fix this?

Messages In This Thread
CI Ignited-Datatables, wrong variable returning - by mr.web - 12-26-2015, 03:37 AM

Theme © iAndrew 2016 - Forum software by © MyBB