/** * @param int $step The step to load. */ public function __construct($step) { // set setp $this->step = (int) $step; // skip step 1 if ($this->step > 1) { // include path set_include_path($_SESSION['path_library'] . PATH_SEPARATOR . get_include_path()); // load spoon require_once $_SESSION['path_library'] . '/spoon/spoon.php'; // create template $this->tpl = new SpoonTemplate(); $this->tpl->setForceCompile(true); $this->tpl->setCompileDirectory(dirname(__FILE__) . '/../cache/'); // assign the path if (defined('PATH_WWW')) { $this->tpl->assign('PATH_WWW', PATH_WWW); } // create form $this->frm = new SpoonForm('step' . $step, 'index.php?step=' . $step); $this->frm->setParameter('class', 'forkForms submitWithLink'); $this->frm->setParameter('id', 'installForm'); } }