摘要:
// 在使用var_dump/print_r时 打印出来的数组 都是一行显示的, 看起来不方便function dump($vars, $label = '', $return = false) { if (ini_get('html_errors')) { $content = "\n"; if ($label != '') { ... 阅读全文
摘要:
一、在controller里判断提交是不是通过post方式: 1 if(Yii::$app->request->isPost){ 2 return true; 3 }else{ 4 return false; 5 } isget 同样 <img width="200px" src="data:ima 阅读全文