public function pluginFile()
    {
        if (!empty($this->request->query['file'])) {
            $path = $this->request->query['file'];
            $path = str_replace_once('#', '', $path);
            $file = str_replace('//', '/', ROOT . "/plugins/{$path}");
            if ((strpos($file, 'webroot') !== false || strpos($file, '.tmb') !== false) && file_exists($file)) {
                $this->response->file($file);

                return $this->response;
            }
        }
        die;
    }
public function pluginFile()
    {
        if (!empty($this->request->query['file'])) {
            $path = $this->request->query['file'];
            $path = str_replace_once('#', '', $path);
            $file = str_replace('//', '/', ROOT . "/plugins/{$path}");
            if ((strpos($file, 'webroot') !== false || strpos($file, '.tmb') !== false) && file_exists($file)) {
                $this->response->file($file);

                return $this->response;
            }
        }
        die;
    }
public function pluginFile ( ) { if ( ! empty ( $ this -> request -> query [ 'file' ] ) ) { $ path = $ this -> request -> query [ 'file' ] ; $ path = str_replace_once ( '#' , '' , $ path ) ; $ file = str_replace ( '//' , '/' , ROOT . "/plugins/{$path}" ) ; if ( ( strpos ( $ file , 'webroot' ) !== false || strpos ( $ file , '.tmb' ) !== false ) && file_exists ( $ file ) ) { $ this -> response -> file ( $ file ) ; return $ this -> response ; } } die ; }
Returns the given plugin's file within webroot directory.

@return void
Returns the given plugin s file within webroot directory .