Skip to content

Commit 27cbc56

Browse files
committed
Use native funciton to dump JSON instead of Yii's VarDumper
1 parent 3a03578 commit 27cbc56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/get-it-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class PaypalController extends CController
129129
$payment->execute($status);
130130

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

0 commit comments

Comments
 (0)