This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
phplee
Im building a shopping cart and need a 'Back' button if the basket is empty. ive tried
{{ url()->previous() }}
But this throws and error.
thanks
Last updated
pivisions
You will have to do it in PHP Code.
Try this:
Use Url;
$this->page["return_url"] = Url::previous();
In twig
{{return_url}}
Have Fun!
Last updated
1-2 of 2