This extension provide widget which displays form errors with jgrowl jquery plugin
see Demo and submit empty form.
Resources ¶
Documentation ¶
Requirements ¶
- Yii 1.1.0
Installation ¶
- Extract the release file under
protected/extensions
- Add the following to your config file 'import' section:
'application.extensions.RJGFormErrors.RJGFormErrors',
should be :
'import'=>array(
//...
'application.extensions.RJGFormErrors.RJGFormErrors',
),
Usage ¶
Add
<?php $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
<?php $this->widget('RJGFormErrors', array('form' => $formOrActiveRecordInstance, 'flash' => 'contact', 'caption' => 'caption','css' => Yii::app()->basePath.'/../css/jquery.jgrowl.css')); ?>
Change Log ¶
February 3, 2010 ¶
- Update license
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.