public static function import($key) { $path = ZtPath::getInstance(); $filePath = $path->getPath($key); if ($filePath) { return require_once $filePath; } return false; }
/** * * @param string $className */ public static function autoloadZtPsr2($className) { if (substr($className, 0, 1) != 'J') { $path = ZtPath::getInstance(); $filePath = $path->getPathByClassname($className); if ($filePath) { return require_once $filePath; } } return false; }
/** * Get asset file with relative path * @param string $key File location * @return boolean|string */ public function getAssetUrl($key) { return ZtPath::getInstance()->getUrl($key); }
/** * Constructor * @param object|array $properties */ public function __construct($properties = null) { parent::__construct($properties); /* Init local variables */ $this->_path = ZtPath::getInstance(); }