• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[MagicNotifications] Integrate custom or CI-FormValidator library notifications

#1
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

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

Reply

#3
Ups, updated Wink
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.