php value para javascript
<?php echo "<script>"; echo 'var tbMotorista = ' . json_encode($this->tbMotorista) . ';'; echo "</script>"; ?>