Mobile.class.php
540 Bytes
<?php
/**
* 移动端控制器
*/
class Controller_Admin_Mobile extends Controller_Admin_Base
{
public function indexAction()
{
$this->_view['modules'] = Facade_Mobile::getModule();
}
/**
* 设置模块状态
*/
public function setmodulestatusAction()
{
$status = $this->_request->query('status', 0);
$id = $this->_request->query('id', 0);
$status = Facade_Mobile::setModuleStatus($id, $status);
if($status)
{
return $this->returnJson(true, 200);
}
else
{
return $this->returnJson(true, 200);
}
}
}