2015-07-28 15:15:57 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
2016-01-24 11:54:16 +08:00
|
|
|
* @author Zhou Yuyang <1009465756@qq.com> 12:28 2016/1/23
|
|
|
|
|
* @copyright 2105-2018 SRCMS
|
2015-07-28 15:15:57 +08:00
|
|
|
* @homepage http://www.src.pw
|
2016-01-24 11:54:16 +08:00
|
|
|
* @version 1.5
|
2015-07-28 15:15:57 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
namespace Home\Controller;
|
|
|
|
|
|
|
|
|
|
use Think\Controller;
|
|
|
|
|
|
|
|
|
|
class IndexController extends Controller{
|
|
|
|
|
|
|
|
|
|
public function index(){
|
2016-01-24 11:54:16 +08:00
|
|
|
$model = M('hall');
|
|
|
|
|
$tmodel= M('setting');
|
|
|
|
|
$title = $tmodel->where('id=1')->select();
|
|
|
|
|
$hall = $model->order('id DESC')->select();
|
|
|
|
|
$this->assign('model', $hall);
|
|
|
|
|
$this->assign('title', $title);
|
2015-07-28 15:15:57 +08:00
|
|
|
$this->display();
|
|
|
|
|
}
|
|
|
|
|
}
|