public function indexAction(Request $request, $domain, $identifier)
    {
        $locale = substr($request->getLocale(), 0, 2);  // Make sure to use only the two character locale
        try {
            $transUnit = $this->getTipTransUnit($locale, $domain, $identifier);
            $translatedTip = $transUnit->getTranslation($locale);
            return $this->render('TamagoTipsManagerBundle:Default:index.html.twig', [
                'tip' => $translatedTip, 'identifier' => $identifier
            ]);
        } catch (\RuntimeException $e) {
            // Catch exception and return 204
            return new Response(null, Response::HTTP_NO_CONTENT);
        }
    }
public function indexAction(Request $request, $domain, $identifier)
    {
        $locale = substr($request->getLocale(), 0, 2);  // Make sure to use only the two character locale
        try {
            $transUnit = $this->getTipTransUnit($locale, $domain, $identifier);
            $translatedTip = $transUnit->getTranslation($locale);
            return $this->render('TamagoTipsManagerBundle:Default:index.html.twig', [
                'tip' => $translatedTip, 'identifier' => $identifier
            ]);
        } catch (\RuntimeException $e) {
            // Catch exception and return 204
            return new Response(null, Response::HTTP_NO_CONTENT);
        }
    }
public function indexAction ( Request $ request , $ domain , $ identifier ) { $ locale = substr ( $ request -> getLocale ( ) , 0 , 2 ) ; // Make sure to use only the two character locale try { $ transUnit = $ this -> getTipTransUnit ( $ locale , $ domain , $ identifier ) ; $ translatedTip = $ transUnit -> getTranslation ( $ locale ) ; return $ this -> render ( 'TamagoTipsManagerBundle:Default:index.html.twig' , [ 'tip' => $ translatedTip , 'identifier' => $ identifier ] ) ; } catch ( \ RuntimeException $ e ) { // Catch exception and return 204 return new Response ( null , Response :: HTTP_NO_CONTENT ) ; } }
Render tip page with style and JavaScript.

@param Request $request
@param $domain
@param $identifier
@return Response
Render tip page with style and JavaScript .