<?php 

namespace Controllers;

use Silex\Application;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;


class IndexController
{
	public function index(Request $request, Application $app)
	{
		return new Response('Index page');
	}

	public function viewAllProducts(Request $request, Application $app)
	{
		return new Response('All products');
	}

	public function viewProduct(Request $request, Application $app, $id)
	{
		return new Response($id . 'producth with this number.');
	}
}