You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
644 B
PHTML
31 lines
644 B
PHTML
5 years ago
|
<?php
|
||
|
/**
|
||
|
* Created by PhpStorm.
|
||
|
* User: xmy 280564871@qq.com
|
||
|
* Date: 2017/4/19
|
||
|
* Time: 13:47
|
||
|
*/
|
||
|
|
||
|
namespace Open\Controller;
|
||
|
|
||
|
|
||
|
use Open\Model\DocumentModel;
|
||
|
|
||
|
class DocumentController extends BaseController{
|
||
|
|
||
|
public function _initialize()
|
||
|
{
|
||
|
$this->assign("title_head","document");
|
||
|
parent::_initialize(); // TODO: Change the autogenerated stub
|
||
|
}
|
||
|
|
||
|
public function index($id=0){
|
||
|
$model = new DocumentModel();
|
||
|
$data = $model->getLeftLists();
|
||
|
$content = $model->getContent($id);
|
||
|
!empty($id) || $content = $model->getDetailByName("New");
|
||
|
$this->assign("content",$content);
|
||
|
$this->assign("data",$data);
|
||
|
$this->display();
|
||
|
}
|
||
|
}
|