title: Prestashop HelperList callback.. how make simple button with a value on url?
body: <p>I make a module and i need make a custom button on my helper list for get a value and open a file, but my callback on <code>HelperList</code> doesn't work...</p>
  
  <p>My code:</p>
  
  <pre><code> protected function initList()
  {
      $this-&gt;_select = 'a.id_rec_ps_beta AS id_lol';
  
      $this-&gt;fields_list = array(
          'name' =&gt; array(
              'title' =&gt; $this-&gt;getTranslator()-&gt;trans('Category name', array(), 'Modules.Recpsbeta.Admin'),
              'class' =&gt; 'fixed-width-xxl',
              'type' =&gt; 'text',
              'search' =&gt; false,
              'orderby' =&gt; false
          ),
  
          .....
  
          'id_lol' =&gt; array(
              'title' =&gt; 'LOL',
              'align' =&gt; 'text-center',
              'callback' =&gt; 'giveMyCallBack',
              'orderby' =&gt; false,
              'search' =&gt; false,
              'remove_onclick' =&gt; true
          )
      );
  
  
      $helper = new HelperList();
      $helper-&gt;shopLinkType = '';
      $helper-&gt;simple_header = false;
      $helper-&gt;identifier = 'id_rec_ps_beta';
      //$helper-&gt;definition = $helper-&gt;identifier;
      $helper-&gt;actions = array('edit', 'delete');
      $helper-&gt;show_toolbar = true;
      $helper-&gt;toolbar_btn['new'] =  array(
          'href' =&gt; AdminController::$currentIndex.'&amp;configure='.$this-&gt;name.'&amp;add'.$this-&gt;name.'&amp;token='.Tools::getAdminTokenLite('AdminModules'),
          'desc' =&gt; $this-&gt;getTranslator()-&gt;trans('Add new', array(), 'Modules.Recpsbeta.Admin')
      );
      $helper-&gt;toolbar_btn['edit'] =  array(
          'href' =&gt; AdminController::$currentIndex.'&amp;configure='.$this-&gt;name.'&amp;setting'.$this-&gt;name.'&amp;token='.Tools::getAdminTokenLite('AdminModules'),
          'desc' =&gt; $this-&gt;getTranslator()-&gt;trans('Setting', array(), 'Modules.Recpsbeta.Admin'),
      );
      $helper-&gt;title = $this-&gt;displayName;
      $helper-&gt;table = $this-&gt;name;
      $helper-&gt;orderBy = 'position';
      $helper-&gt;orderWay = 'ASC';
      $helper-&gt;position_identifier = 'id_rec_ps_beta';
      $helper-&gt;token = Tools::getAdminTokenLite('AdminModules');
      $helper-&gt;currentIndex = AdminController::$currentIndex.'&amp;configure='.$this-&gt;name;
      return $helper;
  }
  </code></pre>
  
  <p>After i call my function:</p>
  
  <pre><code>public function giveMyCallBack ($id_rec_ps_beta)
    {
     return 'lol';
    }
  </code></pre>
  
  <p>But my list like:</p>
  
  <p><a href="https://i.stack.imgur.com/QgDeD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QgDeD.png" alt="enter image description here"></a></p>
  
  <p>And before my page report a error:
  "Warning line 335 file C:\wamp64\www\ps2\classes\helper\HelperList.php
  [ 2 ] call_user_func_array() expects parameter 1 to be a valid callback, class 'AdminModulesController' does not have a method 'giveMyCallBack'"</p>
  
  <p><a href="https://i.stack.imgur.com/fCdCD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fCdCD.png" alt="enter image description here"></a></p>
  
  <p>Someone help me please? I have not found a solution for days.</p>
  
  <p>Thx.</p>
  
  <p>PrestaShop: 1.7.3.3
  Apache: 2.4.27 (Win64) 
  PHP: 5.6.31
  MySQL: 5.7.19</p>