Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to implement password strength like in gmail registration in YII php?

I want to create Password Strength Meter.I am following the estrongpassword For YII I used Estrongpassword extension. I put this extension in extension folder and wrote the code as below:

<div class="row">
<?php echo $form->labelEx($model,'password'); ?>
<?php

$this->widget('ext.EStrongPassword.EStrongPassword',
    array('form'=>$form, 'model'=>$model, 'attribute'=>'password'));

?>
<?php echo $form->error($model,'password'); ?>

when i checked my file its thorughs me ERROR as written below:

Alias "ext.EStrongPassword.EStrongPassword" is invalid. Make sure it points to an existing PHP file and the file is readable. 

I wondering how to configure it,please help me. Thanks in advance.

like image 748
Amit Singla Avatar asked Jul 18 '13 07:07

Amit Singla


1 Answers

The code is correct and shouldn't cause any problems. Here are a few things you can try:

  • Make sure you've installed the extension correctly
  • Check that the spelling in file names and class name is correct. Linux is case sensitive.
  • Check your extension folder protected/extensions and make sure that the directory EStrongPassword (case sensitive) exists
  • Make sure the path is correct (ext in your script refers to protected/extensions path)

The file should be at:

protected/extensions/EStrongPassword/EStrongPassword.php

Hope this helps!

like image 147
Amal Murali Avatar answered Oct 19 '22 12:10

Amal Murali