InitPHP (A PHP Framework) 用户手册
第4章 4.7 Library扩展库

详细说明:

如何加载扩展库:

class indexController extends Controller {
	
	public $initphp_list = array('test'); 
	
	public function run() {
		$page = $this->getLibrary('pager'); 

	}
	
	public function test() {
		echo 'Hello World';
	}
	
	/**
	 * @return testService
	 */
	private function getTestService() {
		return InitPHP::getService('test','test');
	}

}
	

开发扩展库: