定制 srtfisher/codeigniter-features 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

srtfisher/codeigniter-features

最新稳定版本:0.5

Composer 安装命令:

composer require srtfisher/codeigniter-features

包简介

Codeigniter Feature Flags

README 文档

README

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.

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);

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

<?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/

统计信息

  • 总下载量: 6.53k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 11
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 9
  • Watchers: 0
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-12-03