Esempio n. 1
0
File: Form.php Progetto: hjr3/titon
 /**
  * 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')));
 }
Esempio n. 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();
 }