mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Creado mecanismo de generacion de alertas tipo Boostrap (defecto) y ToastR. Aplicado a los controladores existentes
This commit is contained in:
@ -68,6 +68,15 @@ abstract class GoBaseResourceController extends \CodeIgniter\RESTful\ResourceCon
|
||||
*/
|
||||
public $delete_flag = 0;
|
||||
|
||||
/**
|
||||
* IMN: Variable para seleccionar el tipo de mensajeria que usa una clase
|
||||
*
|
||||
* 'alerts' -> Boostrap 5 default alerts
|
||||
* 'toastr' -> Javascript ToastR library
|
||||
* @var string
|
||||
*/
|
||||
public $alertStyle = 'alerts';
|
||||
|
||||
|
||||
/**
|
||||
* An array of helpers to be loaded automatically upon
|
||||
@ -116,6 +125,9 @@ abstract class GoBaseResourceController extends \CodeIgniter\RESTful\ResourceCon
|
||||
$this->viewData['viewPath'] = static::$viewPath;
|
||||
|
||||
$this->viewData['currentLocale'] = $this->request->getLocale();
|
||||
|
||||
/* IMN */
|
||||
$this->viewData['alertStyle'] = $this->alertStyle;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user