public static function delHtmlFile($category, $oldTitle, $newTitle) { $config = Config::instance(); //$newHtmlFile = $config->htmlPath.$category."/".$newTitle.".html"; $oldHtmlFile = $config->htmlPath . $category . "/" . $oldTitle . ".html"; //unlink($newHtmlFile); unlink($oldHtmlFile); }
public function __construct($key) { $this->config = Config::instance(); $this->_key = $key; $this->setData($this->config->data); }