Download Plugin (zip)

Stats

Version

0.0.1

Wheels Compatibility

1.0.4

Downloads

95

Last Updated

June 5, 2010

About Plugins

Plugins allow you to extend or modify default Wheels application behavior. To use, you just drop the zip file into your plugins directory and reload your application.

Read Using and Creating Plugins for more information.

jConfig

Plugin which allow you to create your own custom config

Author

Jaroslaw Krzemienski

Description

jConfig

Inspired by John C. Bland II

Methods Added

Here is a listing of the methods that are added by this plugin.

  • initConfig
  • getConfig
  • saveConfig
  • getCurrConfig
  • setVar
  • getVar

Instructions

To use this plugin you need to follow these steps:

  • Simply add the plugin to your plugins directory.
  • Your server must be able to write files and dirs in root path.
  • It can holds many config files.
  • If you want create new config or get existed config to read simple use:
    initConfig(configName)
  • If you want to set new variable in config simple use:
    setVar(key="keyName", value="varValue")
    Note: both arguments are required.
  • If you want to get variable from config simple use:
    getVar(key="keyName")
    Note: argument is required.
  • If you want to save config into the file simple use:
    saveConfig()
  • If you want to get other config simple use:
    initConfig(configName)
    Note: Remember that if you haven't save previous config the changes won't be made to the config file

Note: You musn't use : or | in your config key - value pairs

Change Log

Version 0.0.1—June 5, 2010 Download

  • Initial release.
  • Wheels compatibility: 1.0.4.