title: Prestashop error "invalid security token"
body: <p>im creating a new module for prestashop 1.5.6 and im having some problems with it.</p>
  
  <p>The module has to send sms to the costumers and it has to be an option of the back-Office menu.</p>
  
  <p>I have created the module with the install and uninstall functions and added the tabs to the <code>back-office</code> menu, but im a newbie in <code>prestashop</code> so i don´t know how to make the <code>AdminMyModuleController.php</code> and when i try to click the tab of the module it says <code>"INVALID SECURITY TOKEN"</code>, i don´t know how resolve this issue because i don´t know much of security.</p>
  
  <p>If someone can add me on facebook or whatever to help me would be amazing. </p>
  
  <p>Here is the code of the mymodule.php:</p>
  
  <p>private function _createTab()
    {</p>
  
  <pre><code>// Tab Raiz
  
     $data = array(
                'id_tab' =&gt; '', 
                'id_parent' =&gt; 0, 
                'class_name' =&gt; 'Empty', 
                'module' =&gt; 'mymodule', 
                'position' =&gt; 14, 'active' =&gt; 1 
               );
  
  /* Insert the data to the tab table*/
  $res = Db::getInstance()-&gt;insert('tab', $data);
  
  //Get last insert id from db which will be the new tab id
  $id_tabP = Db::getInstance()-&gt;Insert_ID();
  </code></pre>
  
  <p>//Define tab multi language data
      $data_lang = array(
                       'id_tab' => $id_tabP, 
                       'id_lang' => Configuration::get('PS_LANG_DEFAULT'),
                       'name' => 'SMS a clientes'
                       );</p>
  
  <pre><code>// Now insert the tab lang data
  $res &amp;= Db::getInstance()-&gt;insert('tab_lang', $data_lang);
  
  // Tab Configuracion
  
  $data = array(
                'id_tab' =&gt; '', 
                'id_parent' =&gt; $id_tabP, 
                'class_name' =&gt; 'AdminMymodule', 
                'module' =&gt; 'mymodule', 
                'position' =&gt; 1, 'active' =&gt; 1 
               );
  
  $res = Db::getInstance()-&gt;insert('tab', $data);
  $id_tab = Db::getInstance()-&gt;Insert_ID();
  $data_lang = array(
                   'id_tab' =&gt; $id_tab, 
                   'id_lang' =&gt; Configuration::get('PS_LANG_DEFAULT'),
                   'name' =&gt; 'Configuracion'
                   );
  $res &amp;= Db::getInstance()-&gt;insert('tab_lang', $data_lang);
  
  // Tab Enviar Sms
  
  $data = array(
                'id_tab' =&gt; '', 
                'id_parent' =&gt; $id_tabP, 
                'class_name' =&gt; 'AdminEnviar', 
                'module' =&gt; 'mymodule', 
                'position' =&gt; 1, 'active' =&gt; 1 
               );
  
  
  $res = Db::getInstance()-&gt;insert('tab', $data);
  $id_tab = Db::getInstance()-&gt;Insert_ID();
  
  $data_lang = array(
                   'id_tab' =&gt; $id_tab, 
                   'id_lang' =&gt; Configuration::get('PS_LANG_DEFAULT'),
                   'name' =&gt; 'Enviar SMS'
                   );
  
  $res &amp;= Db::getInstance()-&gt;insert('tab_lang', $data_lang);
  
  return true;
  </code></pre>
  
  <p>}</p>
  
  <p>Thanks</p>