示例#1
0
文件: Form.php 项目: 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')));
 }
示例#2
0
文件: Session.php 项目: hjr3/titon
 /**
  * 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();
 }