CodeIgniter Forums
[MagicNotifications] Integrate custom or CI-FormValidator library notifications - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11)
+--- Thread: [MagicNotifications] Integrate custom or CI-FormValidator library notifications (/showthread.php?tid=727)



[MagicNotifications] Integrate custom or CI-FormValidator library notifications - 50l3r - 01-10-2015

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


RE: [MagicNotifications] Integrate custom or CI-FormValidator library notifications - Rufnex - 01-10-2015

I think you have missed the url to your library ^^.


RE: [MagicNotifications] Integrate custom or CI-FormValidator library notifications - 50l3r - 01-10-2015

Ups, updated Wink