title: Prestashop INVALID SECURITY TOKEN I understand the risks and I really want to display this page
body: <p>Have created module which can create tab while installing it to prestashop v1.6 admin panel : to create tab and install code is as follow. please help to resolve.</p>
  
  <pre><code> class Greeting extends Module {
     protected $tabs = [
      [
          'name' =&gt; 'Personalised Greetings',
          'className' =&gt; 'AdminMkonGreetinList',
          'active' =&gt; 1,
          'childs' =&gt; [
              [
                  'active' =&gt; 0,
                  'name' =&gt; 'List Greetings',
                  'className' =&gt; 'AdminMkonGreetinList',
              ],
          ],
      ];
  
     //Adding Tab on Admin Section
      public function addTab($tabs, $id_parent = 0) {
      foreach ($tabs as $tab) {
          $tabModel = new Tab();
          $tabModel-&gt;module = $this-&gt;name;
          $tabModel-&gt;active = $tab['active'];
          $tabModel-&gt;class_name = $tab['className'];
          $tabModel-&gt;id_parent = $id_parent;
  
          //tab text in each language
          foreach (Language::getLanguages(true) as $lang) {
              $tabModel-&gt;name[$lang['id_lang']] = $tab['name'];
          }
  
          $tabModel-&gt;add();
  
          //submenus of the tab
          if (isset($tab['childs']) &amp;&amp; is_array($tab['childs'])) {
              $this-&gt;addTab($tab['childs'], 
              Tab::getIdFromClassName($tab['className']));
          }
      }
      return true;
    }
    public function __construct() {
       - - - - - -
    }
    public function install() {
      if (Shop::isFeatureActive()) {
          Shop::setContext(Shop::CONTEXT_ALL);
      }
       //add Tabs
      $this-&gt;addTab($this-&gt;tabs);
        if (!parent::install() || !$this-&gt;registerHook('leftColumn') || 
      !$this-&gt;registerHook('header')) {
          return false;
      }
      $this-&gt;frontMenu();
      return true;
     }
    }
  </code></pre>
  
  <p>Dashboard Personalize Greetings Tab :
  <a href="https://i.stack.imgur.com/EBchb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EBchb.png" alt="Admin dashboard of Tab"></a></p>
  
  <p>Error Screen while clicking on Tab :
  <a href="https://i.stack.imgur.com/JG06h.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JG06h.png" alt="Error screen which came by clicking on tab"></a></p>
  
  <p>Dashboard Personalize Greetings Tab :
  Error Screen while clicking on Tab :</p>