Skip to content

Instantly share code, notes, and snippets.

@yjeroen
Created August 11, 2012 12:47
Show Gist options
  • Save yjeroen/3324235 to your computer and use it in GitHub Desktop.
Save yjeroen/3324235 to your computer and use it in GitHub Desktop.
list($controller, $actionID) = Yii::app()->createController('site/contact');
$controller->layout = false;
$action = $controller->createAction($actionID);
ob_start();
$action->runWithParams(array('id'=>1));
$output = ob_get_contents();
ob_end_clean();
tr($controller,'$controller');
tr($actionID,'$actionID');
tr($action,'$action');
tr($output,'$output');
@yjeroen
Copy link
Author

yjeroen commented Aug 11, 2012

tr() is my shorthand for yii trace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment