Tema: data table
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/10/2011, 13:45
jcq_quiroz
 
Fecha de Ingreso: septiembre-2010
Mensajes: 111
Antigüedad: 13 años, 7 meses
Puntos: 0
data table

holo como estan por favor alguien me puede ayudar, estoy utilizando dataTable para mostrar mis tablas y explora los datos de la tabla, construyo con un array de array recorriendo con un foreach, pero me da el siguiente error

Código PHP:
<table  id="myTable" >

        <tr>
            <th colspan="3"><?php echo $this->escape($this->title); ?></th>
        </tr>
        <tr>
            <th>CODIGO TIPO CLIENTE</th>
            <th>TIPO CLIENTE</th>
            <th>DESCRIPCION</th>

        </tr>

        <!--    recorro el arreglo de datos-->
        <?php foreach ($this->tipoclientes as $tipocliente) : ?>
            <!--    por cada fila, muestro sus datos -->

            <tr>
                <td><?php echo $this->escape($tipocliente->COD_TIPO_CLIENTE); ?></td>
                <td><?php echo $this->escape($tipocliente->TIPO_CLIENTE); ?></td>
                <td><?php echo $this->escape($tipocliente->DESCRIPCION_TIPO_CLIENTE); ?></td>


        </tr>
        <?php endforeach; ?>
oColumn is undefined y el error es en la siguiente linea de datatable
oSettings.aaSorting[i][1] = oColumn.asSorting[0];

pero si la tabla ya esta consturida no hay ese tipo de error, porque es mi error gracias por su ayuda