PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Name

getConfigDir() — return the directory where config files are stored

Description

string|array getConfigDir(string key);

Example 187. getConfigDir()



<?php

// set some config directories
$smarty->setConfigDir(array(
    
'one' => './config',
    
'two' => './config_2',
    
'three' => './config_3',
));

// get all directories where config files are stored
$config_dir $smarty->getConfigDir();
var_dump($config_dir); // array

// get directory identified by key
$config_dir $smarty->getConfigDir('one');
var_dump($config_dir); // string

?>

   

See also setConfigDir(), addConfigDir() and $config_dir.

Smarty Template Engine