Yii 1.1: jgrowlformerrors

Form errors widget with jgrowl jquery plugin
1 follower

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

Be the first person to leave a comment

Please to leave your comment.

Create extension
  • Yii Version: 1.1
  • License: Other Open Source License
  • Developed by: claymore
  • Category: User Interface
  • Votes: No votes yet
  • Downloaded: 385 times
  • Created on: Feb 3, 2010
  • Last updated: Feb 5, 2010