public function getFilename()
    {
        if (isset($this->viewVars['_filename'])) {
            return $this->viewVars['_filename'] . '.xlsx';
        }

        return Inflector::slug(str_replace('.xlsx', '', $this->request->url)) . '.xlsx';
    }
public function getFilename()
    {
        if (isset($this->viewVars['_filename'])) {
            return $this->viewVars['_filename'] . '.xlsx';
        }

        return Inflector::slug(str_replace('.xlsx', '', $this->request->url)) . '.xlsx';
    }
public function getFilename ( ) { if ( isset ( $ this -> viewVars [ '_filename' ] ) ) { return $ this -> viewVars [ '_filename' ] . '.xlsx' ; } return Inflector :: slug ( str_replace ( '.xlsx' , '' , $ this -> request -> url ) ) . '.xlsx' ; }
Gets the filename

@return string filename
Gets the filename