title: CRUD with cake php and jqgrid
body: <p>I am trying to use the jqgrid with cake php, the pagination works, but Add,Create,Delete records do not work.</p>
  
  <p><strong>Method edit</strong></p>
  
  <pre><code>public function edit(){
  
      $this-&gt;autoRender=false;
      $oper='';
  
      $oper=$this-&gt;request-&gt;query['oper'];        
      if($oper=='add'){
       echo 'Add record';
      }
  
      if($oper=='edit'){
       echo 'edit record';
      }
  
      if($oper=='del'){
       echo 'delete record';
      }
    }
  </code></pre>
  
  <p><code>$oper=$this-&gt;request-&gt;query['oper'];</code> shows Undefined index: oper [APP\Controller\PeopleController.php, line 16]</p>
  
  <p>If I use <code>$_POST['oper']</code> works.</p>
  
  <p>Pagination works and I am using the same to receive variables.</p>
  
  <pre><code>     $page = $this-&gt;request-&gt;query['page'];
       $limit = $this-&gt;request-&gt;query['rows'];
       $sidx = $this-&gt;request-&gt;query['sidx'];
       $sord = $this-&gt;request-&gt;query['sord'];
  </code></pre>
  
  <p><strong>Jqgrid</strong></p>
  
  <pre><code>$('#tb_people').jqGrid({
              url: "&lt;?php echo $this-&gt;request-&gt;base ?&gt;/people/listxml",
              datatype: 'xml',
              colNames: ['Id', 'Doc', 'Name', 'Telephone','Adress','Sex'],
              colModel: [
                  {
                      name: 'id', 
                      index: 'id',
                      width: 80
                  },
  
                  {
                      name: 'doc', 
                      index: 'doc',
                      width: 200,
                      editable:true
                  },
  
                  {
                      name: 'name', 
                      index: 'name', 
                      width: 200,
                      editable:true
                  },
  
                  {
                      name: 'telephone', 
                      index: 'telephone', 
                      width: 80,
                      editable:true
                  },
                  {
                      name: 'adress', 
                      index: 'adress', 
                      width: 80
                  },
                  {
                      name: 'sex', 
                      index: 'sex', 
                      width: 80,
                      editable:true
                  }],
              rowNum: 5,
              rowList: [5,10,20,30,50],
              pager: '#dv_paginador',
              sortname: 'id',
              viewrecords: true,
              sortorder: 'asc',
              xmlReader: {
                  root: 'rows',
                  row: 'row',
                  repeatitems: true,
                  id: '[id]'
              },
              caption: 'People',
              height: '100%',
              editurl:"&lt;?php echo $this-&gt;request-&gt;base ?&gt;/people/edit"
          }).jqGrid('navGrid', '#dv_paginator', {
              search: false
          });;
  </code></pre>