# CodeIgniter 自定义前缀

**URL:** <https://www.isharkfly.com/t/codeigniter/4181>\
**Category:** PHP\
**Created:** [January 6, 2014, 12:56am UTC](https://www.isharkfly.com/t/codeigniter/4181 "2014-01-06T00:56:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [January 6, 2014, 12:56am UTC](https://www.isharkfly.com/t/codeigniter/4181/1 "2014-01-06T00:56:31Z")

</div>

要设定你自己的子类前缀,请打开application/config/config.php 文件并找到这一项:`$config['subclass_prefix'] = 'MY_';`请注意所有原始CodeIgniter类库以 CI\_ 作为前缀，所以请勿以CI\_作为你自己的前缀。

所有的扩展核心类必须放到core目录中！
