init() public method

Redefine this function instead of default constructor.
public init ( )
示例#1
0
文件: Installer.php 项目: atk4/atk4
 /**
  * Initialization.
  */
 public function init()
 {
     parent::init();
     $this->page = null;
     $this->saved_base_path = $this->pm->base_path;
     $this->pm->base_path .= basename($_SERVER['SCRIPT_NAME']);
     $this->add('jUI');
     $this->template->trySet('version', 'Web Software Installer');
     $this->stickyGET('step');
     $this->s_first = $this->s_last = $this->s_current = $this->s_prev = $this->s_next = null;
     $this->s_cnt = 0;
     $this->initInstaller();
 }