Skip to content

Access "pathname()" method in view using $this->pathname() #407

@altafhpatel

Description

@altafhpatel

This is not a bug this is the helping material

Paste this piece of code in

klein class folder > src > klein

public function pathname(Request $request = null) { $uri = $this->request->uri(); // Strip the query string from the URI $uri = strstr($uri, '?', true) ?: $uri; return $uri; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions