2017 © Pedro Peláez
 

library codeigniter-features

Codeigniter Feature Flags

image

srtfisher/codeigniter-features

Codeigniter Feature Flags

  • Tuesday, December 4, 2012
  • by srtfisher
  • Repository
  • 0 Watchers
  • 8 Stars
  • 49 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Codeigniter Feature Flags

Enabling features for select users is a fun and also productive way to develop new features into a site. You can enable features, or certain sections of code based upon a number of factors. Take a look at config/features.php for more on that., (*1)

Setting Up

You need to set the current user's ID before you can use the User ID part of this. You can do that by calling: $this->feature->set_user($the_user_id);, (*2)

Using the Flags

Setting up the flags are simple. We included a helper function to test for the feature with the current user to make your life even simplier! Just use this code, (*3)

<?php
if (can_do_feature('the_feature_name'))
{
    // The code to execute if they can perform a feature

}
?>

Questions?

Shoot me an email at http://talkingwithsean.com/contact/, (*4)

The Versions

04/12 2012

dev-master

9999999-dev https://seanfisher.co/

Codeigniter Feature Flags

  Sources   Download

MIT

The Requires

  • php >=5.2

 

library codeigniter feature flag features

04/12 2012

0.5

0.5.0.0 https://seanfisher.co/

Codeigniter Feature Flags

  Sources   Download

MIT

The Requires

  • php >=5.2

 

library codeigniter feature flag features

04/12 2012

0.3

0.3.0.0 https://seanfisher.co/

Codeigniter Feature Flags

  Sources   Download

MIT

The Requires

  • php >=5.2

 

library codeigniter feature flag features