Skip to content

Instantly share code, notes, and snippets.

@Natetronn
Created April 23, 2012 08:01
Show Gist options
  • Save Natetronn/2469440 to your computer and use it in GitHub Desktop.
Save Natetronn/2469440 to your computer and use it in GitHub Desktop.
ExpressionEngine hidden configs
Add this to an EE2 template and turn on PHP to view all available config key / values in the config file format.
<?php
$EE = get_instance();
$config = $this->EE->config->config;
ksort($config);
foreach($config as $key => $value)
{
echo "\$config['$key'] = '".$value."'; ".BR."";
}
?>
@Natetronn
Copy link
Author

Note: you can view all the Config Variables in the output profiler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment