[eluser]Unknown[/eluser]
I have a form in one of my view files and I have a function that handle the form data but how do I get that function to run when the form is submitted?
I tried to use the header function as shown below but that returned an error because the headers had already been sent
Code:
header("Location: index.php/products/search/" . $_POST['searchCat'] . "/" . $_POST['searchString'] . "/");
Does anyone know the best way to access a controller function from a view?
Thanks