Developer Developer - 4 years ago 131
PHP Question

get Symfony2 Session values

i have the below Code in Symfony2 Controller Action. how can i debug this Values.

$log = $this->get('session')->get('hoursTransferred');
$hoursTrasfered = $log['hoursToTransfer'];


Thanks.

Answer Source

You can use the Symfony VarDumper Component:

dump($log);

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download