Answer the question
In order to leave comments, you need to log in
How to get properties from a Module?
Module.php file
<?php
namespace app\modules\user;
class Module extends \yii\base\Module
{
public $controllerNamespace = 'app\modules\user\controllers';
public $emailConfirm = true;
<?php
namespace app\modules\user\models;
use Yii;
use yii\base\Model;
use app\modules\user\Module;
....
public function signup()
{
echo $this->module->emailConfirm; die();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question