Yii Framework Forum: How To Override Dektrium Mail View? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How To Override Dektrium Mail View? Rate Topic: -----

#1 User is offline   rawlly 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 46
  • Joined: 25-April 13

Posted 20 June 2014 - 10:20 AM

Has anyone experience in overriding/customizing the mail out for Dektrium signup?

I have the registration views customized but not the mailouts.
http://yii2-user.rea...ding-views.html

As the mailout is not a standard 'view' i imagine that it may not go through the same way of getting processed?

Regards,
Dennis
0

#2 User is offline   paskuale 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 419
  • Joined: 30-December 11
  • Location:Italy, Bari

Posted 24 June 2014 - 03:22 PM

http://yii2-user.rea...ding-views.html
0

#3 User is offline   guyute 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 30-December 14

Posted 30 December 2014 - 07:06 PM

Hi - I am wondering if anyone ever found a solution to this issue. Although I have used the process outlined in the dektrium docs to override other views, I too am unable to use the same steps to override the mail views.

Please let me know if there is a solution for this.

Thank you.
0

#4 User is offline   Marco Germani 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 20-October 15

Posted 18 March 2016 - 06:27 AM

Hi, try to override Mailer.php "viewPath" from config like this:
    'components' => [
        ...
        'mailer' => [
            'viewPath' => '@frontend/views/user/mail'
        ],
    ],

View Postguyute, on 30 December 2014 - 07:06 PM, said:

Hi - I am wondering if anyone ever found a solution to this issue. Although I have used the process outlined in the dektrium docs to override other views, I too am unable to use the same steps to override the mail views.

Please let me know if there is a solution for this.

Thank you.

0

#5 User is offline   softark 

  • Keep It Simple
  • Yii
  • Group: Moderators
  • Posts: 3,307
  • Joined: 16-February 11
  • Location:Japan

Posted 18 March 2016 - 08:16 AM

/* Moved from "General Discussions" to "Extensions" */
0

#6 User is offline   Marco Germani 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 20-October 15

Posted 22 June 2016 - 08:26 AM

For me this works well:

    'modules' => [
        'user' => [
            'class' => 'dektrium\user\Module',
            'mailer' => [
                'viewPath' => '@frontend/views/user/mail',
            ],
        ],
    ],

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users