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
4e6aa211
Commit
4e6aa211
authored
Feb 12, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The directory holding email templates is renamed from `mails` to `mail`
parent
6ad357d9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
8 additions
and
8 deletions
+8
-8
html.php
apps/advanced/common/mail/layouts/html.php
+0
-0
passwordResetToken.php
apps/advanced/common/mail/passwordResetToken.php
+0
-0
main-local.php
apps/advanced/environments/dev/common/config/main-local.php
+1
-1
main-local.php
apps/advanced/environments/prod/common/config/main-local.php
+1
-1
README.md
apps/basic/README.md
+1
-1
html.php
apps/basic/mail/layouts/html.php
+0
-0
MailPanel.php
extensions/debug/panels/MailPanel.php
+1
-1
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
BaseMailer.php
framework/mail/BaseMailer.php
+3
-4
No files found.
apps/advanced/common/mail
s
/layouts/html.php
→
apps/advanced/common/mail/layouts/html.php
View file @
4e6aa211
File moved
apps/advanced/common/mail
s
/passwordResetToken.php
→
apps/advanced/common/mail/passwordResetToken.php
View file @
4e6aa211
File moved
apps/advanced/environments/dev/common/config/main-local.php
View file @
4e6aa211
...
...
@@ -10,7 +10,7 @@ return [
],
'mail'
=>
[
'class'
=>
'yii\swiftmailer\Mailer'
,
'viewPath'
=>
'@common/mail
s
'
,
'viewPath'
=>
'@common/mail'
,
'useFileTransport'
=>
true
,
],
],
...
...
apps/advanced/environments/prod/common/config/main-local.php
View file @
4e6aa211
...
...
@@ -10,7 +10,7 @@ return [
],
'mail'
=>
[
'class'
=>
'yii\swiftmailer\Mailer'
,
'viewPath'
=>
'@common/mail
s
'
,
'viewPath'
=>
'@common/mail'
,
],
],
];
apps/basic/README.md
View file @
4e6aa211
...
...
@@ -16,7 +16,7 @@ DIRECTORY STRUCTURE
commands/ contains console commands (controllers)
config/ contains application configurations
controllers/ contains Web controller classes
mail
s/
contains view files for e-mails
mail
/
contains view files for e-mails
models/ contains model classes
runtime/ contains files generated during runtime
tests/ contains various tests for the basic application
...
...
apps/basic/mail
s
/layouts/html.php
→
apps/basic/mail/layouts/html.php
View file @
4e6aa211
File moved
extensions/debug/panels/MailPanel.php
View file @
4e6aa211
...
...
@@ -16,7 +16,7 @@ class MailPanel extends Panel
{
/**
* @var string path where all mails will be saved. should be an alias.
* @var string path where all
e
mails will be saved. should be an alias.
*/
public
$mailPath
=
'@runtime/debug/mail'
;
/**
...
...
framework/CHANGELOG.md
View file @
4e6aa211
...
...
@@ -169,6 +169,7 @@ Yii Framework 2 Change Log
-
Chg: Renamed
`ActiveRecordInterface::createActiveRelation()`
to
`createRelation()`
(qiangxue)
-
Chg: The scripts in asset bundles are now registered in
`View`
at the end of
`endBody()`
. It was done in
`endPage()`
previously (qiangxue)
-
Chg: Renamed
`csrf-var`
to
`csrf-param`
for CSRF header name (Dilip)
-
Cgh: The directory holding email templates is renamed from
`mails`
to
`mail`
(qiangxue)
-
New #66:
[
Auth client library
](
https://github.com/yiisoft/yii2-authclient
)
OpenId, OAuth1, OAuth2 clients (klimov-paul)
-
New #706: Added
`yii\widgets\Pjax`
and enhanced
`GridView`
to work with
`Pjax`
to support AJAX-update (qiangxue)
-
New #1393:
[
Codeception testing framework integration
](
https://github.com/yiisoft/yii2-codeception
)
(
Ragazzo
)
...
...
framework/mail/BaseMailer.php
View file @
4e6aa211
...
...
@@ -29,7 +29,6 @@ use yii\base\MailEvent;
*/
abstract
class
BaseMailer
extends
Component
implements
MailerInterface
,
ViewContextInterface
{
/**
* @event \yii\base\MailEvent an event raised right before send.
* You may set [[\yii\base\MailEvent::isValid]] to be false to cancel the send.
...
...
@@ -43,13 +42,13 @@ abstract class BaseMailer extends Component implements MailerInterface, ViewCont
* @var string directory containing view files for this email messages.
* This can be specified as an absolute path or path alias.
*/
public
$viewPath
=
'@app/mail
s
'
;
public
$viewPath
=
'@app/mail'
;
/**
* @var string|boolean HTML layout view name. This is the layout used to render HTML mail body.
* The property can take the following values:
*
* - a relative view name: a view file relative to [[viewPath]], e.g., 'layouts/html'.
* - a path alias: an absolute view file path specified as a path alias, e.g., '@app/mail
s
/html'.
* - a path alias: an absolute view file path specified as a path alias, e.g., '@app/mail/html'.
* - a boolean false: the layout is disabled.
*/
public
$htmlLayout
=
'layouts/html'
;
...
...
@@ -157,7 +156,7 @@ abstract class BaseMailer extends Component implements MailerInterface, ViewCont
*
* The view to be rendered can be specified in one of the following formats:
*
* - path alias (e.g. "@app/mail
s
/contact");
* - path alias (e.g. "@app/mail/contact");
* - a relative view name (e.g. "contact"): the actual view file will be resolved by [[findViewFile()]]
*
* @param array $params the parameters (name-value pairs) that will be extracted and made available in the view file.
...
...
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