api/App/Controllers/DocComment.php

28 lines
638 B
PHP

<?php
namespace App\Controllers;
use App\Models;
use Core\Controller;
use Core\View;
use Parsedown;
use App\Config;
class DocComment extends Controller
{
public function insertAction(){
$comment = new Models\DocComment();
date_default_timezone_set("Asia/Shanghai");
var_dump($this->input);
$userdate = date("Y-m-d H:i:s",time());
$comment->InsertObject($this->input);
//$this->JsonResp(200,$all,"OK");
}
public function getDocCommentAction(){
$comment = new Models\DocComment();
var_dump($this->input);
var_dump($comment->DocComments(8));
}
}