/** * Constructor. * * Creates a new wizard instance. * * @param string $root Base directory to load the views from. * @param string $uri Base uri of the wizard. */ public function __construct($root, $uri = null) { // Auto-detect wizard uri, if none is given if (is_null($uri)) { $this->uriFromPath(); } else { $this->uri($uri); } // Initialize wizard $this->queue = array(); parent::__construct($root . DS . 'index.php'); }