public function execute() { //this is what happens when a view is executed $path = $this->_filePath; if ($this->_isWow) { $path = Wow::view($this->_filePath, App::layouts(), App::modules()); if ($this->_version !== false) { $dot_pos = strrpos($path, '.', -5); $path = substr($path, 0, $dot_pos) . '.v' . $this->_version . '.php'; } } FileManager::include($path); }