Set config directory
public setConfigDir ( $config_dir ) : Smarty | ||
return | Smarty | current Smarty instance for chaining |
$smarty->setConfigDir('/path/to/config');
$smarty->setConfigDir('./config/');This example sets the relative directory `./config/` as the location of the configuration files. In both examples, `setConfigDir` is used to set the directory path to the configuration files for Smarty. This helps to organize your code and make it more modular. The package library used in this example is `Smarty`.
public setConfigDir ( $config_dir ) : Smarty | ||
return | Smarty | current Smarty instance for chaining |