![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
yii
亢士群的blog
这个作者很懒,什么都没留下…
展开
-
yii高级框架默认访问控制器方法
打开 config 配置文件,进入main.php ,添加‘defaultController’=>'index',原创 2016-07-11 18:19:39 · 834 阅读 · 0 评论 -
yii 原生语句 增删改查
html:隐藏域 request->csrfToken?>"> <?php namespace app\controllers; use Yii; use yii\web\Controller; class IndexController extends Controller { //显示表单界面 public function actionIndex(){ return $this->re原创 2016-07-11 18:18:00 · 758 阅读 · 0 评论 -
Yii2.0 上传图片
Model class Xxxx extends CActiveRecord { public $image; // ... other attributes public function rules() { return array( array('image', 'file', 'types'=>'jpg, gif原创 2016-07-12 20:07:36 · 1343 阅读 · 0 评论 -
Jquery 节点删除
html 页面 "> jquery代码 //删除数据 $(function(){ $(".delete").click(function(){ var id = $(this).attr('id'); var obj = $(this); $.ajax({原创 2016-07-13 14:36:44 · 456 阅读 · 0 评论 -
Yii2.0文件上传
1.在控制器界面加载 use yii\web\UploadedFile; 2.接收图片并保存在本地 $file = UploadedFile::getInstanceByName('photo'); //保存路径 $path = 'images/'; //判断文件是否存在 if(!file_e原创 2016-07-14 13:46:08 · 515 阅读 · 0 评论 -
Sphinx的安装和yii框架的使用
1.开始 -> 运行 -> 输入cmd回车,打开命令行工具 进入sphinx 文件所在的位置如: 我的位置是: cd E:/usr/local/coreseek-3.2.14-win32 2.indexer.exe -c 配置文件 --all(参数--all 表示创建全部索引) .\bin\indexer.exe -c .\etc\csft_mysql.conf --all原创 2016-07-27 20:07:11 · 435 阅读 · 1 评论