# CodeIgniter 初始化类

**URL:** <https://www.isharkfly.com/t/codeigniter/4219>\
**Category:** PHP\
**Created:** [January 7, 2014, 3:12am UTC](https://www.isharkfly.com/t/codeigniter/4219 "2014-01-07T03:12:11Z")\
**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 7, 2014, 3:12am UTC](https://www.isharkfly.com/t/codeigniter/4219/1 "2014-01-07T03:12:11Z")

</div>

和大多数其他CI中的类一样，在控制器中初始化日历类用$this-\>load-\>library函数：`$this->load->library('calendar');`导入之后,日历类可以这样使用: $this-\>calendar

文章来源：[http://cwiki.ossez.com/pages/viewpage.action?pageId=2392139](http://cwiki.ossez.com/pages/viewpage.action?pageId=2392139)
