Welcome Guest, Not a member yet? Register   Sign In
[MagicNotifications] Integrate custom or CI-FormValidator library notifications
#1

(This post was last modified: 01-10-2015, 04:33 PM by 50l3r.)

This is a library who show custom or form validator notifications in a jquery plugin or simple text.

Framework: Codeigniter
Oficial Helpers autoloaded: Url
Oficial Drivers autoloaded: Session

How to use:

  1. Configure the *application/languages/LANG/notify_lang.php* config file
    $lang['msg_error'] = array( 0 => array( 'titulo' => 'Notification title', 'mensaje' => 'Notification message' ),);
  2. Set notification error with url redirect and custom error type:
    $this->magicnotifications->setError(1,'form', 'info');
  3. Or set a form validator notification errors:
    if ($this->form_validation->run() == FALSE){$val_err = validation_errors();$this->magicnotifications->setError($val_err,'form');}
  4. Render Notification Errors in a view file
    $this->magicnotifications->renderNotification();

Library Url: https://github.com/50l3r/CI-MagicNotifications
Reply


Messages In This Thread
[MagicNotifications] Integrate custom or CI-FormValidator library notifications - by 50l3r - 01-10-2015, 12:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB