2021-02-21 19:04:34
Yii提供了一个灵活的和可扩展的日志记录功能。根据日志级别和消息的类别可以将消息记录分类。使用级别和类别过滤器,选中的消息可以进一步记录到不同的目标,如文件、电子邮
2021-02-21 14:07:19
views
{
title: "发票照片",
data: "BILLPIC",
edit: {
type: "file
2021-02-14 14:45:13
$sql="SELECT * FROM bfams_statuslogs where BILLID =:BILLID order by createTime desc";
$DataRowsBill=\Yii::$app->db->createCommand($sql, [':BILLID' => $
2021-02-12 10:04:20
public function getQuery($where) {
// var_dump($where);exit;
$schoolid = \Yii::$app->admin->identity->schoolid;
$query = $this->mode
2021-02-09 22:24:38
var m2 = meTables({
sTable: "#me-table",
buttonSelector: "#me-table-buttons-two",
title: "书目信息",
number: {
2021-02-08 22:38:26
<?php
use yii\helpers\Json;
use yii\helpers\ArrayHelper;
use jinxing\admin\models\Auth;
$auth =Auth::getDataTableAuth(ArrayHelper::getValue($this->context->mo
2021-02-08 16:59:31
在模型中
public function beforeSave($insert)
{
if ($this->isNewRecord) {
//如果不是超级管理员,就把自己的学校ID赋予自己创建的子账号
2021-02-05 15:35:27
控制器中实现筛选功能
//限制查询,只显示自己学校的数据
public function getQuery($where) {
$schoolid = \Yii::$app->admin->identity->schoolid;
return $this->modelCl
2021-01-19 16:27:31
$sql = 'select day(createTime) as 日期, count(1) as 数量 from huiya_cover where createTime >= date(now()) - interval 7 day group by day(createTime);';
$
2021-01-16 21:16:46
在编程的时候,我们总需要把当前时间写入记录,表示什么时候创建、更新记录的,这些动作在mysql层面完成更加简单'createTime' timestamp DEFAULT CURRENT_TIMESTAMP COMM
2020-06-15 15:19:54
php中实现在线预览pdf文件功能:
<?php
$file = 'http://'.$_GET["url"];
$filename = 'filename.pdf';
header('Content-type: application/pdf&#