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
I have a search form component which has a property which allows the search component to select the result page. the result page url is setup like this:
/cars/:page?/:manufacturer?/:group?/:type?/:category?
how do i pass the posted data when the form is submitted to the page selected in the component ($this->property('listing_page')) and pass the post data. i know its routing but not sure how to do it. Any help would be great!
Last updated
kuni
public function onSearch()
{
$params = [
'manufacturer' => post('manufacturer'),
'group' => post('group'),
];
$listingPage = $this->property('listing_page');
$url = $this->controller->pageUrl($listingPage, $params);
return Redirect::to($url);
}
1-2 of 2