01. 在Libraries目录创建一个Mylib文件,内容是一个简单的类 <?php namespace App\Controllers; class Home extends BaseController { //http://127.0.0.1/CI4/public/ //http://127.0.0.1/CI4/public/index.php/home public function index() { //调用我们的Lib库文件 $Mylib = new \App\Libraries…
当前环境之前是装过MySQL官方版本5.6.22,想测试Percona版本MySQL.启动Percona-MySQL报错. [root@dg7 support-files]# /etc/init.d/mysql startmy_print_defaults: error while loading shared libraries: libssl.so.6: cannot open shared object file: No such file or directoryStarting MyS…
之前我一直用ActionBarSherlock这个开源项目来做ActionBar,因为它可以让低版本的设备也能用上ActionBar.但是在最新的SDK中Google提供了一个AppCompat的工程作为libary.它里面就提供了向低版本兼容的ActionBar,所以我们就直接用官方的库就行了.这里需要注意的是,如果你是用最新的Eclipse with SDK自动创建的工程,那么就没有问题,如果是自己建立的工程,那么就需要设置style文件和添加一些命名空间,具体步骤请参照:http:…