CodeIgniter Forums

Full Version: Problem with render() and form in table
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi everyone,

I use codeigniter since 1 years to develop small project for my company and since 3 month i use render() function to call view from my controllers.

Everythings working well but I have a strange reaction when I use it with a form in a table

Here is my controller function :

PHP Code:
public function index()
        foreach (
$result_transporteur->result() as $row)
'transporteurId' => $row->transporteurId,

$this->data['select_transporteur'] = $this->parser->parse('logistique/select_transporteur'$data_tabletrue);

            foreach (
$result->result() as $row)
['table_data_build'][] =(array(

       //Actualise les valeurs finale de chaque FA

           /*$data_table['table_data_build'][] =(array(

       $this->data['table_data'] = $this->parser->parse('logistique/table_liste'$data_tabletrue);

          $this->data['title'] = "";
$this->data['pagetitle'] = "Suivi Logistique";
         $this->data['welcome_message'] = "Bienvenue sur le suivi Logistique";
       $this->data['pagebody'] = "logistique/suivi_logistique";
       $this->data['maintitle'] = "Suivi Logistique";



In my principal view I have this code :

<div class="row">
   <div class="col-lg-12">
   <div class="ibox float-e-margins">
       <div class="ibox-title">
           <h5>Liste des Bon de Transport</h5>
           <div class="ibox-tools">
               <a class="collapse-link">
                   <i class="fa fa-chevron-up"></i>
       <div class="ibox-content">

           <div class="table-responsive">
               <table class="table table-striped table-bordered table-hover dataTables-example" >
                       <th>Date de demande</th>


And to show the result of my table I use this view

PHP Code:
('BASEPATH') OR exit('No direct script access allowed');

 * views/template.php
 * Template for the menu Sidebar
<tr class="gradeX">
            echo validation_errors
           $attributes = array ('class'=>'form');
           echo form_open('logistique/Suivi_Logistique/edit_transport',$attributes);
            <div class="form-group">
                <div class="input-group">                                                    
                    <input type="hidden" name="id_transport" value="{id_transport}" class="form-control" >
            <div class="form-group">
                <button class="btn btn-primary dim" type="submit"><i class="fa fa-pencil"></i></button>

The problem is that in the first line of my table, the submit button not work (and only on the first line). All the other work correctly.

If anyone have a solution or an idea