Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. <?php
  2. defined('BASEPATH') OR exit('No direct script access allowed');
  3.  
  4. class A_Controller extends CI_Controller {
  5.  
  6. function index() {
  7. $params = array();
  8. $params["file_name"] = "preferences"; // File name of the preference file.
  9. $this->load->splint("francis94c/ci-preference", "+CIPreferences", $params, "alias");
  10. $this->alias->get("key", "defaultVal");
  11. $this->alias->set("key", "val");
  12. $this->alias->increment("key1", 5) // Increments 'key1' by 5.
  13. $this->alias->increment("key1") // increments 'key1' by 1.
  14. $this->alias->concat("key2", "A") // Concatenates 'A' to 'key2'.
  15. $this->alias->commit(); // Commits all values to file.
  16. }
  17. }
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement