/** * Constructor * * @param array $blocks * list of blocks. If none given default is array('content','header','nav','aside','footer','head') * * @param array $path * list of dir path. Automaticaly append path of this file to find page/ajax/error files * * @param string $extension * optional extension for file finding. Default is 'php'. * If different, you need to provide page/ajax/error files with suitable extension * */ public function Z($blocks = array(), $path = array(), $extension = "php") { if ($blocks) { Z::setBlocks($blocks); } Z::setPath($path); Z::$ext = "." . trim(ltrim($extension, '.')); }