Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
8a2903de
Commit
8a2903de
authored
Feb 28, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added verb filter to advanced app logout
parent
4d5ba13c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
SiteController.php
apps/advanced/backend/controllers/SiteController.php
+7
-0
SiteController.php
apps/advanced/frontend/controllers/SiteController.php
+7
-0
No files found.
apps/advanced/backend/controllers/SiteController.php
View file @
8a2903de
...
...
@@ -5,6 +5,7 @@ use Yii;
use
yii\web\AccessControl
;
use
yii\web\Controller
;
use
common\models\LoginForm
;
use
yii\web\VerbFilter
;
/**
* Site controller
...
...
@@ -31,6 +32,12 @@ class SiteController extends Controller
],
],
],
'verbs'
=>
[
'class'
=>
VerbFilter
::
className
(),
'actions'
=>
[
'logout'
=>
[
'post'
],
],
],
];
}
...
...
apps/advanced/frontend/controllers/SiteController.php
View file @
8a2903de
...
...
@@ -10,6 +10,7 @@ use yii\base\InvalidParamException;
use
yii\web\BadRequestHttpException
;
use
yii\web\Controller
;
use
Yii
;
use
yii\web\VerbFilter
;
/**
* Site controller
...
...
@@ -38,6 +39,12 @@ class SiteController extends Controller
],
],
],
'verbs'
=>
[
'class'
=>
VerbFilter
::
className
(),
'actions'
=>
[
'logout'
=>
[
'post'
],
],
],
];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment