Skip to content

Commit

Permalink
Use native funciton to dump JSON instead of Yii's VarDumper
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandernst committed Jul 18, 2014
1 parent 3a03578 commit 27cbc56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/get-it-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class PaypalController extends CController
$payment->execute($status);

echo CHtml::tag('h3', array(), 'Payment status is ' . $status->getStatus());
echo CHtml::tag('pre', array(), CVarDumper::dumpAsString($status->getModel(), 10, true));
echo CHtml::tag('pre', array(), json_encode(iterator_to_array($status->getModel()), JSON_PRETTY_PRINT));
Yii::app()->end();
}

Expand Down

0 comments on commit 27cbc56

Please sign in to comment.