Kohana_Twig::set_filename PHP Method

set_filename() public method

Sets the view filename.
public set_filename ( $file ) : View
return View
    public function set_filename($file)
    {
        // Store the file path locally
        $this->_file = $file;
        // Split apart at the extension if necessary
        if ($extension = pathinfo($file, PATHINFO_EXTENSION)) {
            $this->set_extension($extension);
        }
        return $this;
    }