/**
  * 
  * @param type $options
  */
 public function __construct($options = array())
 {
     parent::__construct($options);
     $this->connect();
     Event::add('framework.controller.destruct.after', function ($name) {
         $cache = Registry::get('cache');
         $cache->disconnect();
     });
 }
 /**
  * Class constructor
  * 
  * @param array $options
  */
 public function __construct($options = array())
 {
     parent::__construct($options);
     $this->_fileManager = new FileManager();
     $this->_path = APP_PATH . DIRECTORY_SEPARATOR . $this->_path . DIRECTORY_SEPARATOR;
     $this->_suffix = '.' . trim($this->_suffix, '.');
     if (!is_dir($this->_path)) {
         $this->_fileManager->mkdir($this->_path, 0755);
     }
 }