Je viens de découvrir le plugin brJqGridPlugin qui permet d'afficher des donnéessous forme de datagrid.

Après installation et config , je n'arrive pas afficher les données de ma table (qui comporte juste 2 champs , id et langue).

Voici ma config

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
 
    brJsonGrid:
      url: /brJsonGrid/:langue
      param: { module: brJsonGrid, action: configurazioni }
 
    brActionGrid:
      url: /brActionGrid/:langue
      param: { module: brActionGrid, action: configurazioni }
 
-- view.yml
 
   stylesheets: 
   - jquery-ui-1.8.21.custom.css
   - /brJqGridPlugin/css/ui.jqgrid.css
 
 
  javascripts:
   - jquery-1.7.2.min.js
   - /brJqGridPlugin/js/i18n/grid.locale-fr.js
   - /brJqGridPlugin/js/jquery.jqGrid.min.js
 
-- app.yml
 
   brJqGrid:
    config:
      Langue:
        id:
          etichetta: 'code langue'
          visibile: true
          width: 30
          editable: 'true'
          sortable: 'true'
          edittype: 'text'
          align: 'center'
          editoptions: '{size: "3",maxlength: "3"}'
          editrules: '{required:true,number:true,minValue:40,maxValue:100}'
 
        langue:
          etichetta: 'langue'
          visibile: true
          width: 30
          editable: 'true'
          sortable: 'true'
          edittype: 'text'
          align: 'center'
          editoptions: '{size: "3",maxlength: "3"}'
          editrules: '{required:true,number:true,minValue:40,maxValue:100}'
 
--  actions.class.php
 
public function executeConfigurazioni(sfWebRequest $request)
  {
      $this->monDataGrid = new brJqGrid('Langue');
  }
 
-- ma vue brActionGridSuccess.php:
 
    <?php $monDataGrid->show() ?>
 
J'obtiens la fenetre ci -dessous