Default value for the styles, scripts and global variables entry
This commit is contained in:
parent
d96e65792b
commit
35393642fa
1 changed files with 6 additions and 0 deletions
|
@ -54,6 +54,12 @@ class EA_Loader extends CI_Loader {
|
|||
{
|
||||
$vars['page_path'] = APPPATH . 'views/' . $page . '.php';
|
||||
|
||||
$vars['styles'] = $vars['styles'] ?? [];
|
||||
|
||||
$vars['scripts'] = $vars['scripts'] ?? [];
|
||||
|
||||
$vars['global_variables'] = $vars['global_variables'] ?? [];
|
||||
|
||||
return $this->view($layout, $vars, $return);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue