private function getFile($file, $fromTheme) {
        $this->updateAssets($file);

        if (!$fromTheme && is_readable($this->publicAssetsPath . $this->view->getModule() . DIRECTORY_SEPARATOR . $file)) {
            return $this->parseFile($this->view->getModule() . DIRECTORY_SEPARATOR . $file);
        }
        elseif (is_readable($this->publicAssetsPath . engineGet('config', 'defaults', 'theme') . DIRECTORY_SEPARATOR . $file)) {
            return $this->parseFile(engineGet('config', 'defaults', 'theme') . DIRECTORY_SEPARATOR . $file);
        }
        else {
            return 'not-found/' . $file;
        }
    }
private function getFile($file, $fromTheme) {
        $this->updateAssets($file);

        if (!$fromTheme && is_readable($this->publicAssetsPath . $this->view->getModule() . DIRECTORY_SEPARATOR . $file)) {
            return $this->parseFile($this->view->getModule() . DIRECTORY_SEPARATOR . $file);
        }
        elseif (is_readable($this->publicAssetsPath . engineGet('config', 'defaults', 'theme') . DIRECTORY_SEPARATOR . $file)) {
            return $this->parseFile(engineGet('config', 'defaults', 'theme') . DIRECTORY_SEPARATOR . $file);
        }
        else {
            return 'not-found/' . $file;
        }
    }
private function getFile ( $ file , $ fromTheme ) { $ this -> updateAssets ( $ file ) ; if ( ! $ fromTheme && is_readable ( $ this -> publicAssetsPath . $ this -> view -> getModule ( ) . DIRECTORY_SEPARATOR . $ file ) ) { return $ this -> parseFile ( $ this -> view -> getModule ( ) . DIRECTORY_SEPARATOR . $ file ) ; } elseif ( is_readable ( $ this -> publicAssetsPath . engineGet ( 'config' , 'defaults' , 'theme' ) . DIRECTORY_SEPARATOR . $ file ) ) { return $ this -> parseFile ( engineGet ( 'config' , 'defaults' , 'theme' ) . DIRECTORY_SEPARATOR . $ file ) ; } else { return 'not-found/' . $ file ; } }
Fetches the path to file
@param string $file
@param boolean $fromTheme Indicates whether to get file from theme assets and not modules' assets
@todo Look for a way to use files directly without copying them to the public folder to guide
against script injections and what-have-yous
@return string
Fetches the path to file