yii框架
Jef冒牌绅士
神即道,道法自然,如来!
展开
-
Yii框架中常用的url
html模板a链接使用">当前页面url Yii::app()->request->url;跳转前一个页面url $this->redirect(Yii::app()->request->urlReferrer);根目录URL Yii::app()->baseUrl 或 Yii::app()->request->baseUrl;自定义URL $this->createUrl(‘po原创 2016-10-21 19:29:56 · 1080 阅读 · 0 评论 -
Yii2实用基础学习笔记(二):Html助手和Request组件 [ 2.0 版本 ]
Html助手1 .在@app\views\test的index.php中://引入命名空间use yii\helpers\Html;?> //【一】表单:Html::beginForm(提交地址,提交方法,属性数组);?>=Html::beginForm('','post',['id'=>'form','class'=>'form','data'=>'myself']);?原创 2016-10-21 20:04:42 · 396 阅读 · 0 评论 -
yii2利用mpdf创建pdf文件
安装mPDF使用 Composer安装在yii2的 ‘composer.json’ 加入"mpdf/mpdf":"*"1"require": {2 "php": ">=5.4.0",3 "yiisoft/yii2": "*",原创 2016-10-21 19:04:27 · 2800 阅读 · 0 评论