SPLINT Packages Wiki Downloads {} Blog Log In Sign Up

SPLINT

Packages

Wiki

Downloads

{} Blog

Log In


Sign Up

francis94c/ci-preference

v0.0.3 6 1 - 5.0 0 {} 1


×

Are you sure you want to delete this package?

Users will no longer be able to intall this package if you do so.

Description

Simple key-value pair library for saving dynamic persistent config values.

README

ci-preference

The ci-preference library is a library that allows you store values in a key-value pair manner. the values could be a string, integer, or an array.

To install and use in your Code Igniter project, download and install Splint, then open a terminal at the root of your intended Code Igniter distribution and run:

splint install francis94c/ci-preference

To load and use:

$params = array();
$params["file_name"] = "preferences"; // File name of the preference file.
$this->load->splint("francis94c/ci-preference", "+CIPreferences", $params, "alias");
$this->alias->get("key", "defaultVal");
$this->alias->set("key", "val");
$this->alias->commit(); // Commits all values to file.

with from CynoBit