Skip to content

Instantly share code, notes, and snippets.

@cornernote
Created January 23, 2013 02:09
Show Gist options
  • Select an option

  • Save cornernote/4601217 to your computer and use it in GitHub Desktop.

Select an option

Save cornernote/4601217 to your computer and use it in GitHub Desktop.
test
<?php
/**
*
* @package app.controller
*/
class TestController extends WebController
{
/**
*
*/
public function actionIndex()
{
$item = Item::model()->find(1);
$template = 'Item.CustomerApproval_Team';
$viewParams = $item->getEmailParams($template);
$message = email()->getMessage($template, $viewParams);
echo $message['html']; die;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment