[eluser]demogar[/eluser]
Hey there!
I'm getting troubles with the calendar class. I set up the library and it continues with the default configuration.
In the controller
Code:
#Cargando calendario
// Configuraciones
$config = array(
'start_day' => 'monday'
);
// Cargando libreria
$this->load->library('calendar', $config);
#Mes y año actual
$variables['mes'] = date('n');
$variables['ano'] = date('Y');
In the view
Code:
<?=$this->calendar->generate($ano, $mes); ?>
And the calendar starts sunday... The only way I achieve it to start on mondays is setting this on the calendar library itself.
What I'm doing wrong?
Thank you in advance