mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-20 02:53:04 +08:00
27 lines
513 B
PHP
27 lines
513 B
PHP
<?php
|
|
|
|
namespace App\Http\Home\Controllers;
|
|
|
|
use App\Traits\Ajax as AjaxTrait;
|
|
use App\Traits\Security as SecurityTrait;
|
|
|
|
class Controller extends \Phalcon\Mvc\Controller
|
|
{
|
|
|
|
use AjaxTrait, SecurityTrait;
|
|
|
|
public function initialize()
|
|
{
|
|
$controllerName = $this->router->getControllerName();
|
|
|
|
if ($controllerName != 'index') {
|
|
//$this->request->checkReferer();
|
|
}
|
|
|
|
if ($this->request->isPost()) {
|
|
//$this->request->checkToken();
|
|
}
|
|
}
|
|
|
|
}
|