- 博客(4)
- 收藏
- 关注
原创 yii2框架的模块化使用
大型项目会用到模块化modules; 在模块下建立多个不同的模块,每个模块下又分为MVC三层结构和一个模块类文件(此文件的作用就相当于入口文件),通过模块类文件来加载这个模块; 建好模块之后就需要配置,在你所负责的那个目录下找到config文件夹,在main.phpl里面加载你刚刚创建的那个模块.,在modules里加入 'crm' => 'backend\modules\crm\Crm',
2016-11-23 13:29:05 1325
原创 linux上yum安装memcache
1.直接yum安装memcached yum install -y memcached 2.yum安装php-memcached扩展 yum -y install php-pecl-memcache 3.打开php扩展文件修改扩展 vi /etc/php.ini 任意一行加上下面这句话保存退出ok extension="memcache.so" 重启apache服务 sy
2016-07-17 21:32:46 312
原创 采集
1.使用file_get_contents()进行采集; header("content-type:text/html;charset=GBK"); $url="http://tv.sohu.com/news/"; $content=file_get_contents($url); //php解压函数 $content=gzdecode($content); //echo $con
2016-07-08 20:45:46 232
原创 laravel框架里简单的操作
控制器层: namespace App\Http\Controllers; use App\Http\Controllers\controller; use Illuminate\Support\Facades\Redirect; use DB; use paginate; use Input; header("content-type:text/html;charset=utf
2016-05-31 21:37:51 2549 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人