Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taskonsite-архив-перенесен
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Korolev
taskonsite-архив-перенесен
Commits
84e20e4f
Commit
84e20e4f
authored
Mar 16, 2016
by
Олег Гиммельшпах
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#1069 - Оформление страницы 404 в ПУ
parent
7e4613fa
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
61 additions
and
23 deletions
+61
-23
backend/controllers/SiteController.php
backend/controllers/SiteController.php
+3
-9
backend/views/layouts/clear.php
backend/views/layouts/clear.php
+36
-0
backend/views/site/error.php
backend/views/site/error.php
+22
-14
No files found.
backend/controllers/SiteController.php
View file @
84e20e4f
...
...
@@ -37,16 +37,10 @@ class SiteController extends Controller
];
}
/**
* @inheritdoc
*/
public
function
actions
()
public
function
actionError
()
{
return
[
'error'
=>
[
'class'
=>
'yii\web\ErrorAction'
,
],
];
$this
->
layout
=
"clear"
;
return
$this
->
render
(
'error'
);
}
public
function
actionLogin
()
...
...
backend/views/layouts/clear.php
0 → 100644
View file @
84e20e4f
<?php
use
yii\helpers\Html
;
use
backend\assets\AppAsset
;
AppAsset
::
register
(
$this
);
?>
<?php
$this
->
beginPage
()
?>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if !IE]><!-->
<html
lang=
"ru"
>
<!--<![endif]-->
<head>
<meta
charset=
"utf-8"
/>
<title>
Произошла какая-то ошибка
</title>
<meta
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
name=
"viewport"
/>
<?=
Html
::
csrfMetaTags
()
?>
<?php
$this
->
head
()
?>
<?php
echo
$this
->
render
(
'head'
)
?>
</head>
<body>
<?php
$this
->
beginBody
()
?>
<?=
$content
?>
<?php
$this
->
endBody
()
?>
<?php
echo
$this
->
render
(
'foot'
)
?>
</body>
</html>
<?php
$this
->
endPage
()
?>
\ No newline at end of file
backend/views/site/error.php
View file @
84e20e4f
<?php
use
yii\helpers\Html
;
use
common\models\Settings
;
/* @var $this yii\web\View */
/* @var $name string */
/* @var $message string */
/* @var $exception Exception */
$this
->
title
=
$name
;
?>
<div
class=
"site-error"
>
<!-- begin #page-loader -->
<div
id=
"page-loader"
class=
"fade in"
><span
class=
"spinner"
></span></div>
<!-- end #page-loader -->
<h1>
<?=
Html
::
encode
(
$this
->
title
)
?>
</h1>
<div
class=
"alert alert-danger"
>
<?=
nl2br
(
Html
::
encode
(
$message
))
?>
<!-- begin #page-container -->
<div
id=
"page-container"
class=
"fade"
>
<!-- begin error -->
<div
class=
"error"
>
<div
class=
"error-code m-b-10"
>
404
<i
class=
"fa fa-warning"
></i></div>
<div
class=
"error-content"
>
<div
class=
"error-message"
>
Произошла какая-то ошибка
</div>
<div
class=
"error-desc m-b-20"
>
Страница не существует или у вас нет прав для ее просмотра.
<br
/>
Проверьте введенный URL-адрес страницы или обратитесь в Службу технической поддержки для решения данного вопроса
<?=
Html
::
a
(
Settings
::
getValue
(
'content-support-email'
),
'mailto:'
.
Settings
::
getValue
(
'content-support-email'
))
?>
</div>
<p>
The above error occurred while the Web server was processing your request.
</p>
<p>
Please contact us if you think this is a server error. Thank you.
</p>
<div>
<a
href=
"/"
class=
"btn btn-success"
>
Вернуться на главную страницу
</a>
</div>
</div>
</div>
<!-- end error -->
</div>
<!-- end page container -->
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