public function cleanAction()
    {
        $this->putText("Cleaning cache...");

        $di = DI::getDefault();

        if ($di->has('config')) {
            $config = $di->get('config');

            if (!empty($config->application->view->cacheDir)) {
                $this->removeFilesFromDir($config->application->view->cacheDir);
            }

            $this->putSuccess("Done.");
        }
    }
public function cleanAction()
    {
        $this->putText("Cleaning cache...");

        $di = DI::getDefault();

        if ($di->has('config')) {
            $config = $di->get('config');

            if (!empty($config->application->view->cacheDir)) {
                $this->removeFilesFromDir($config->application->view->cacheDir);
            }

            $this->putSuccess("Done.");
        }
    }
public function cleanAction ( ) { $ this -> putText ( "Cleaning cache..." ) ; $ di = DI :: getDefault ( ) ; if ( $ di -> has ( 'config' ) ) { $ config = $ di -> get ( 'config' ) ; if ( ! empty ( $ config -> application -> view -> cacheDir ) ) { $ this -> removeFilesFromDir ( $ config -> application -> view -> cacheDir ) ; } $ this -> putSuccess ( "Done." ) ; } }
Cleans application cache
Cleans application cache