I put password.php
file in components
folder. In phpStorm existing functions in the password.php
are shown well(auto-completion), but when running encountered with this:
Fatal error: Call to undefined function password_hash() in . . .\protected\controllers\SiteController.php on line 129
What's the reason?
main.php
...
'import'=>array(
'application.models.*',
'application.components.*',
),
...