This is my controller,
/**
* @Route("/products")
* @Template()
*/
public function productsAction() {
if (isset($_GET)) {
echo 'Category set';
exit();
}else{
echo 'Category not set';
exit();
}
}
And this is the output I get,
Category set
http://localhost:8000/products by add this URL. It would be great help someone can look into it.