Codex > getConfig() > getConfig()


getConfig()

La función getConfig() permitirá recuperar las configuraciones de la cuenta y almacenarlas en un Array.

La función getConfig() toma un argumento:

  • context: contexto de las configuraciones (String)
<?php
$site['urls'] = getConfig('urls');
?>
<form href="/<?php echo $site['urls']['searchtag']; ?>/" method="post">
  <input type="text" name="q" placeholder="Buscar...">
  <button type="submit">Buscar</button>
</form>