This extension provide widget which displays form errors with jgrowl jquery plugin
see Demo and submit empty form.
protected/extensions'application.extensions.RJGFormErrors.RJGFormErrors',
should be :
'import'=>array( //... 'application.extensions.RJGFormErrors.RJGFormErrors', ),
Add
$this->widget('RJGFormErrors', array('form' => $formOrActiveRecordInstance, 'caption' => 'caption for errors'));
into view file
Parameters:
* form - required, form or model
* flash = optional, flash message id
* css => optional, custom css file
* caption => optional, title for each jgrowl window
Full example
$this->widget('RJGFormErrors', array('form' => $formOrActiveRecordInstance, 'flash' => 'contact', 'caption' => 'caption','css' => Yii::app()->basePath.'/../css/jquery.jgrowl.css'));
Be the first person to leave a comment
Please login to leave your comment.