public function clearCompiled()
    {
        $iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($this->getCompileDir()), \RecursiveIteratorIterator::SELF_FIRST);
        $count    = 0;
        foreach ($iterator as $file) {
            if ($file->isFile()) {
                $count += unlink($file->__toString()) ? 1 : 0;
            }
        }

        return $count;
    }
public function clearCompiled()
    {
        $iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($this->getCompileDir()), \RecursiveIteratorIterator::SELF_FIRST);
        $count    = 0;
        foreach ($iterator as $file) {
            if ($file->isFile()) {
                $count += unlink($file->__toString()) ? 1 : 0;
            }
        }

        return $count;
    }
public function clearCompiled ( ) { $ iterator = new \ RecursiveIteratorIterator ( new \ RecursiveDirectoryIterator ( $ this -> getCompileDir ( ) ) , \ RecursiveIteratorIterator :: SELF_FIRST ) ; $ count = 0 ; foreach ( $ iterator as $ file ) { if ( $ file -> isFile ( ) ) { $ count += unlink ( $ file -> __toString ( ) ) ? 1 : 0 ; } } return $ count ; }
Clear templates inside the compiled directory.

@return int
Clear templates inside the compiled directory .