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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
93dd6294
Commit
93dd6294
authored
Nov 12, 2013
by
slavcodev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix apps phpDoc and short tags
parent
b0b1c27c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
19 deletions
+20
-19
main.php
apps/advanced/backend/views/layouts/main.php
+4
-4
passwordResetToken.php
apps/advanced/frontend/views/emails/passwordResetToken.php
+2
-2
main.php
apps/advanced/frontend/views/layouts/main.php
+6
-6
login.php
apps/advanced/frontend/views/site/login.php
+1
-1
main.php
apps/basic/views/layouts/main.php
+7
-6
No files found.
apps/advanced/backend/views/layouts/main.php
View file @
93dd6294
...
@@ -6,8 +6,8 @@ use yii\bootstrap\NavBar;
...
@@ -6,8 +6,8 @@ use yii\bootstrap\NavBar;
use
yii\widgets\Breadcrumbs
;
use
yii\widgets\Breadcrumbs
;
/**
/**
* @var
$this \yii\web\View
* @var
\yii\web\View $this
* @var
$content string
* @var
string $content
*/
*/
AppAsset
::
register
(
$this
);
AppAsset
::
register
(
$this
);
?>
?>
...
@@ -45,9 +45,9 @@ AppAsset::register($this);
...
@@ -45,9 +45,9 @@ AppAsset::register($this);
?>
?>
<div
class=
"container"
>
<div
class=
"container"
>
<?=
Breadcrumbs
::
widget
([
<?=
Breadcrumbs
::
widget
([
'links'
=>
isset
(
$this
->
params
[
'breadcrumbs'
])
?
$this
->
params
[
'breadcrumbs'
]
:
[],
'links'
=>
isset
(
$this
->
params
[
'breadcrumbs'
])
?
$this
->
params
[
'breadcrumbs'
]
:
[],
])
;
?>
])
?>
<?=
$content
?>
<?=
$content
?>
</div>
</div>
...
...
apps/advanced/frontend/views/emails/passwordResetToken.php
View file @
93dd6294
...
@@ -9,8 +9,8 @@ use yii\helpers\Html;
...
@@ -9,8 +9,8 @@ use yii\helpers\Html;
$resetLink
=
Yii
::
$app
->
urlManager
->
createAbsoluteUrl
(
'site/reset-password'
,
[
'token'
=>
$user
->
password_reset_token
]);
$resetLink
=
Yii
::
$app
->
urlManager
->
createAbsoluteUrl
(
'site/reset-password'
,
[
'token'
=>
$user
->
password_reset_token
]);
?>
?>
Hello
<?=
Html
::
encode
(
$user
->
username
)
?>
,
Hello
<?=
Html
::
encode
(
$user
->
username
)
?>
,
Follow the link below to reset your password:
Follow the link below to reset your password:
<?=
Html
::
a
(
Html
::
encode
(
$resetLink
),
$resetLink
)
?>
<?=
Html
::
a
(
Html
::
encode
(
$resetLink
),
$resetLink
)
?>
apps/advanced/frontend/views/layouts/main.php
View file @
93dd6294
<?php
<?php
use
frontend\config\AppAsset
;
use
yii\helpers\Html
;
use
yii\helpers\Html
;
use
yii\bootstrap\Nav
;
use
yii\bootstrap\Nav
;
use
yii\bootstrap\NavBar
;
use
yii\bootstrap\NavBar
;
use
yii\widgets\Breadcrumbs
;
use
yii\widgets\Breadcrumbs
;
use
frontend\config\AppAsset
;
use
frontend\widgets\Alert
;
use
frontend\widgets\Alert
;
/**
/**
* @var
$this \yii\web\View
* @var
\yii\web\View $this
* @var
$content string
* @var
string $content
*/
*/
AppAsset
::
register
(
$this
);
AppAsset
::
register
(
$this
);
?>
?>
...
@@ -49,10 +49,10 @@ AppAsset::register($this);
...
@@ -49,10 +49,10 @@ AppAsset::register($this);
?>
?>
<div
class=
"container"
>
<div
class=
"container"
>
<?=
Breadcrumbs
::
widget
([
<?=
Breadcrumbs
::
widget
([
'links'
=>
isset
(
$this
->
params
[
'breadcrumbs'
])
?
$this
->
params
[
'breadcrumbs'
]
:
[],
'links'
=>
isset
(
$this
->
params
[
'breadcrumbs'
])
?
$this
->
params
[
'breadcrumbs'
]
:
[],
])
;
?>
])
?>
<?=
Alert
::
widget
()
?>
<?=
Alert
::
widget
()
?>
<?=
$content
?>
<?=
$content
?>
</div>
</div>
...
...
apps/advanced/frontend/views/site/login.php
View file @
93dd6294
...
@@ -22,7 +22,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -22,7 +22,7 @@ $this->params['breadcrumbs'][] = $this->title;
<?=
$form
->
field
(
$model
,
'password'
)
->
passwordInput
()
?>
<?=
$form
->
field
(
$model
,
'password'
)
->
passwordInput
()
?>
<?=
$form
->
field
(
$model
,
'rememberMe'
)
->
checkbox
()
?>
<?=
$form
->
field
(
$model
,
'rememberMe'
)
->
checkbox
()
?>
<div
style=
"color:#999;margin:1em 0"
>
<div
style=
"color:#999;margin:1em 0"
>
If you forgot your password you can
<?=
Html
::
a
(
'reset it'
,
[
'site/request-password-reset'
])
?>
.
If you forgot your password you can
<?=
Html
::
a
(
'reset it'
,
[
'site/request-password-reset'
])
?>
.
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<?=
Html
::
submitButton
(
'Login'
,
[
'class'
=>
'btn btn-primary'
])
?>
<?=
Html
::
submitButton
(
'Login'
,
[
'class'
=>
'btn btn-primary'
])
?>
...
...
apps/basic/views/layouts/main.php
View file @
93dd6294
...
@@ -3,12 +3,13 @@ use yii\helpers\Html;
...
@@ -3,12 +3,13 @@ use yii\helpers\Html;
use
yii\bootstrap\Nav
;
use
yii\bootstrap\Nav
;
use
yii\bootstrap\NavBar
;
use
yii\bootstrap\NavBar
;
use
yii\widgets\Breadcrumbs
;
use
yii\widgets\Breadcrumbs
;
use
app\config\AppAsset
;
/**
/**
* @var
$this \yii\web\View
* @var
\yii\web\View $this
* @var
$content string
* @var
string $content
*/
*/
app\config\
AppAsset
::
register
(
$this
);
AppAsset
::
register
(
$this
);
?>
?>
<?php
$this
->
beginPage
();
?>
<?php
$this
->
beginPage
();
?>
<!DOCTYPE html>
<!DOCTYPE html>
...
@@ -36,7 +37,7 @@ app\config\AppAsset::register($this);
...
@@ -36,7 +37,7 @@ app\config\AppAsset::register($this);
[
'label'
=>
'Contact'
,
'url'
=>
[
'/site/contact'
]],
[
'label'
=>
'Contact'
,
'url'
=>
[
'/site/contact'
]],
Yii
::
$app
->
user
->
isGuest
?
Yii
::
$app
->
user
->
isGuest
?
[
'label'
=>
'Login'
,
'url'
=>
[
'/site/login'
]]
:
[
'label'
=>
'Login'
,
'url'
=>
[
'/site/login'
]]
:
[
'label'
=>
'Logout ('
.
Yii
::
$app
->
user
->
identity
->
username
.
')'
,
[
'label'
=>
'Logout ('
.
Yii
::
$app
->
user
->
identity
->
username
.
')'
,
'url'
=>
[
'/site/logout'
],
'url'
=>
[
'/site/logout'
],
'linkOptions'
=>
[
'data-method'
=>
'post'
]],
'linkOptions'
=>
[
'data-method'
=>
'post'
]],
],
],
...
@@ -45,9 +46,9 @@ app\config\AppAsset::register($this);
...
@@ -45,9 +46,9 @@ app\config\AppAsset::register($this);
?>
?>
<div
class=
"container"
>
<div
class=
"container"
>
<?=
Breadcrumbs
::
widget
([
<?=
Breadcrumbs
::
widget
([
'links'
=>
isset
(
$this
->
params
[
'breadcrumbs'
])
?
$this
->
params
[
'breadcrumbs'
]
:
[],
'links'
=>
isset
(
$this
->
params
[
'breadcrumbs'
])
?
$this
->
params
[
'breadcrumbs'
]
:
[],
])
;
?>
])
?>
<?=
$content
?>
<?=
$content
?>
</div>
</div>
...
...
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