Welcome Guest, Not a member yet? Register   Sign In
Composer package or module?
#3

Hi!

My solution is simple, but i don't know if it's the best solution to this. To modify or change the views you could write a config and overwrite these settings, see example below!

PHP Code:
<?php 

namespace Config;

use 
Myth\Auth\Config\Auth;

class 
Auth extends Auth
{
 
/**
 * --------------------------------------------------------------------
 * Views used by Auth Controllers
 * --------------------------------------------------------------------
 *
 * @var array
 */
 
public $views = [
 
'login'   => 'Myth\Auth\Views\login',
 
'register' => 'Myth\Auth\Views\register',
 
'forgot' => 'Myth\Auth\Views\forgot',
 
'reset'   => 'Myth\Auth\Views\reset',
 
'emailForgot' => 'Myth\Auth\Views\emails\forgot',
 
'emailActivation' => 'Myth\Auth\Views\emails\activation',
 ];

Reply


Messages In This Thread
Composer package or module? - by kleber - 07-25-2021, 01:49 PM
RE: Composer package or module? - by kleber - 07-26-2021, 04:58 AM
RE: Composer package or module? - by superior - 07-28-2021, 02:21 AM
RE: Composer package or module? - by MGatner - 08-02-2021, 04:37 AM
RE: Composer package or module? - by kleber - 08-07-2021, 02:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB