Core/Framework/Amvc/Controller/Controller.php
public function setFormat(string $format)
    {
        // Control rendering by requested output format
        $no_render_format = [
            'json',
            'xml',
            'css',
            'js',
            'file'
        ];

        if (in_array($format, $no_render_format)) {
            $this->render = false;
        }

        $this->format = $format;
    }
public function setFormat(string $format)
    {
        // Control rendering by requested output format
        $no_render_format = [
            'json',
            'xml',
            'css',
            'js',
            'file'
        ];

        if (in_array($format, $no_render_format)) {
            $this->render = false;
        }

        $this->format = $format;
    }
public function setFormat ( string $ format ) { // Control rendering by requested output format $ no_render_format = [ 'json' , 'xml' , 'css' , 'js' , 'file' ] ; if ( in_array ( $ format , $ no_render_format ) ) { $ this -> render = false ; } $ this -> format = $ format ; }
Sets the output format

@param string $format
Sets the output format