Tuesday, November 24, 2009

Next: {config_load}

I'd like to implement {config_load} next.

{config_load file="filename.ext" section="section_name"}

{config_load} loads variables for use in the template. You will be able to access these values with hash marks: {#variablename#}. "section" is optional. You'll be able to load only the portion of the config file that you need.

Here is Smarty's explanation for {config_load}:
http://www.smarty.net/manual/en/language.function.config.load.php

I think I'll only be able to implement the "file" and "section" parameters. I don't think I'll be able to implement the "scope" parameter, because I'm not sure how much control I'll have in controlling the scope of variables.

After finishing {config_load}, I think I'll bump up the version number from 1.0 to 1.1.

No comments:

Post a Comment