Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@cakephp-tutorial
Created February 27, 2016 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cakephp-tutorial/84f697abcb25b43fe4ae to your computer and use it in GitHub Desktop.
Save cakephp-tutorial/84f697abcb25b43fe4ae to your computer and use it in GitHub Desktop.
<?php
class CustomtimeHelper extends AppHelper {
public $helpers = array('Html', 'Time');
public $days = array(
1 => array(
'long' => 'Lunedì',
'short' => 'Lun'
),
2 => array(
'long' => 'Martedì',
'short' => 'Mar'
),
3 => array(
'long' => 'Mercoledì',
'short' => 'Mer'
),
4 => array(
'long' => 'Giovedì',
'short' => 'Gio'
),
5 => array(
'long' => 'Venerdì',
'short' => 'ven'
),
6 => array(
'long' => 'Sabato',
'short' => 'Sab'
),
7 => array(
'long' => 'Domenica',
'short' => 'Dom'
)
);
public $months = array(
1 => array(
'long' => 'Gennaio',
'short' => 'Gen'
),
2 => array(
'long' => 'Febbraio',
'short' => 'Feb'
),
3 => array(
'long' => 'Marzo',
'short' => 'Mar'
),
4 => array(
'long' => 'Aprile',
'short' => 'Apr'
),
5 => array(
'long' => 'Maggio',
'short' => 'Mag'
),
6 => array(
'long' => 'Giugno',
'short' => 'Giu'
),
7 => array(
'long' => 'Luglio',
'short' => 'Lug'
),
8 => array(
'long' => 'Agosto',
'short' => 'Ago'
),
9 => array(
'long' => 'Settembre',
'short' => 'Set'
),
10 => array(
'long' => 'Ottobre',
'short' => 'Ott'
),
11 => array(
'long' => 'Novembre',
'short' => 'Nov'
),
12 => array(
'long' => 'Dicembre',
'short' => 'Dic'
),
);
public $settings = array();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment