Пример #1
0
 /**
  * Configure the class with the current date settings, instead of calling them multiple times.
  *
  * @access public
  * @param obj $Engine
  * @return void
  */
 public function initialize($Engine)
 {
     parent::initialize($Engine);
     $this->configure(array('day' => date('j'), 'dayFormat' => 'j', 'month' => date('n'), 'monthFormat' => 'F', 'year' => date('Y'), 'yearFormat' => 'Y', 'hour' => date('h'), 'hour24' => date('H'), 'minute' => date('i'), 'second' => date('s'), 'meridiem' => date('a')));
 }
Пример #2
0
 /**
  * Initialize the core Session class, if it was not within the Controller.
  *
  * @access public
  * @param obj $Engine
  * @return void
  */
 public function initialize($Engine)
 {
     parent::initialize($Engine);
     $this->Session->initialize();
 }