Controller/AzineEmailTemplateController.php
public function indexAction(Request $request)
    {
        $customEmail = $request->get('customEmail', 'custom@email.com');
        $templates = $this->get('azine_email_web_view_service')->getTemplatesForWebPreView();
        $emails = $this->get('azine_email_web_view_service')->getTestMailAccounts();

        return $this->get('templating')
                    ->renderResponse('AzineEmailBundle:Webview:index.html.twig',
                    array(
                        'customEmail' => $customEmail,
                        'templates' => $templates,
                        'emails' => $emails,
                    ));
    }
public function indexAction(Request $request)
    {
        $customEmail = $request->get('customEmail', 'custom@email.com');
        $templates = $this->get('azine_email_web_view_service')->getTemplatesForWebPreView();
        $emails = $this->get('azine_email_web_view_service')->getTestMailAccounts();

        return $this->get('templating')
                    ->renderResponse('AzineEmailBundle:Webview:index.html.twig',
                    array(
                        'customEmail' => $customEmail,
                        'templates' => $templates,
                        'emails' => $emails,
                    ));
    }
public function indexAction ( Request $ request ) { $ customEmail = $ request -> get ( 'customEmail' , 'custom@email.com' ) ; $ templates = $ this -> get ( 'azine_email_web_view_service' ) -> getTemplatesForWebPreView ( ) ; $ emails = $ this -> get ( 'azine_email_web_view_service' ) -> getTestMailAccounts ( ) ; return $ this -> get ( 'templating' ) -> renderResponse ( 'AzineEmailBundle:Webview:index.html.twig' , array ( 'customEmail' => $ customEmail , 'templates' => $ templates , 'emails' => $ emails , ) ) ; }
Show a set of options to view html- and text-versions of email in the browser and send them as emails to test-accounts.
Show a set of options to view html - and text - versions of email in the browser and send them as emails to test - accounts .