first commit
This commit is contained in:
28
application/mobile/controller/Ajax.php
Normal file
28
application/mobile/controller/Ajax.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
// +------------------------------------------------+
|
||||
// |http://www.cjango.com |
|
||||
// +------------------------------------------------+
|
||||
// | 修复BUG不是一朝一夕的事情,等我喝醉了再说吧! |
|
||||
// +------------------------------------------------+
|
||||
// | Author: 小陈叔叔 <Jason.Chen> |
|
||||
// +------------------------------------------------+
|
||||
namespace app\mobile\controller;
|
||||
|
||||
use app\common\model\ArticleModel as ArticleModelModel;
|
||||
|
||||
class Ajax extends _Init
|
||||
{
|
||||
public function _initialize()
|
||||
{
|
||||
if (!IS_AJAX) {
|
||||
return $this->error('请不要非法访问');
|
||||
}
|
||||
}
|
||||
|
||||
public function modelstyle()
|
||||
{
|
||||
$list = ArticleModelModel::where(['status' => 1])->select();
|
||||
$this->assign('list', $list);
|
||||
return $this->success($this->fetch('ajax/modelstyle'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user