30 lines
982 B
PHP
30 lines
982 B
PHP
<?php
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
class Notif extends CI_Model{
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
//Codeigniter : Write Less Do More
|
|
}
|
|
|
|
public function berhasil($param){
|
|
return '<div class="alert alert-success myalert animated fadeInRight">
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> </button>
|
|
<h3 class="text-success"><i class="fa fa-check"></i> Success</h3> '.$param.'
|
|
</div>';
|
|
}
|
|
|
|
public function gagal($param){
|
|
return '<div class="alert alert-danger myalert animated fadeInRight">
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> </button>
|
|
<h3 class="text-danger"><i class="fa fa-close"></i> Error</h3> '.$param.'
|
|
</div>';
|
|
}
|
|
|
|
public function info($param){}
|
|
public function warnin($param){}
|
|
|
|
}
|