title: Prestashop 1.7 - Get Database parameters
body: <p><strong>Situation:</strong> I need to get the parameters of the database from one PrestaShop 1.7, i know that are in parameters.php but i dont know how to get it in another .php. 
  The code of parameters.php are the following.
  How i get the parameters??
  Thanks.</p>
  
  <pre><code>  &lt;?php return array (
    'parameters' =&gt; 
    array (
      'database_host' =&gt; '127.0.0.1',
      'database_port' =&gt; '',
      'database_name' =&gt; '',
      'database_user' =&gt; '',
      'database_password' =&gt; '',
      'database_prefix' =&gt; 'ps_',
      'database_engine' =&gt; 'InnoDB',
      'mailer_transport' =&gt; 'smtp',
      'mailer_host' =&gt; '127.0.0.1',
      'mailer_user' =&gt; NULL,
      'mailer_password' =&gt; NULL,
      'secret' =&gt; 'fIz1vXGf14HQP0gYIGSOv3yqWAswhTLQ6JRAvCnAytNUUJgVOoHWYhip',
      'ps_caching' =&gt; 'CacheMemcache',
      'ps_cache_enable' =&gt; false,
      'ps_creation_date' =&gt; '2017-10-09',
      'locale' =&gt; 'es-ES',
      'cookie_key' =&gt; '457GbAM3q5ctnvb0wjyyVcuNO0SfzFFxZghNSKW2TWhc9GfzPSvKDAQc',
      'cookie_iv' =&gt; 'RvcXmr9J',
      'new_cookie_key' =&gt; 'def00000ce15b57d4b2e1cdb214464708c3fefc4145607fff1400890a08aa234e5b5c7b0061a1af4647cbdf668ad9f383739c95f710f0e3d606d0e07dc11c20e42d6f0ec',
    ),
  );
  </code></pre>