In module.config.php file, I have set value for 'password_has_type'. And in controller I want to access that. Here is my module.config.php file:
'auth' => array( 'password_hash_type' => 'sha512', ), 'di' => array( 'instance' => array( 'alias' => array( 'auth' => 'Auth\Controller\AuthController', 'auth_login_form' => 'Auth\Form\LoginForm', ),... In controller, I have used
use Auth\Module and in Action method I try to get access value by
echo Module::getOption('password_hash_type'); But I could not get any value?
So please can anybody help me to get that value ?
$auth = Module::getOption('auth'); echo $auth['password_hash_type'];?