Hello there,
I am trying to access the row data variable for using in php (number_format...)
<?php
$fPrice = number_format($this->data['Fahrzeug']['price'], 2, ",", ".");
?>
In some examples I have seen the usage of
When I am in the list view, it works, when I use
But when I am in the Front list > List display > Body code none of these work!
How can I access the row data from within php in the code box?
Please give me a hint,
Anne
I am trying to access the row data variable for using in php (number_format...)
<?php
$fPrice = number_format($this->data['Fahrzeug']['price'], 2, ",", ".");
?>
In some examples I have seen the usage of
$form->data['ModelID]['fieldname']
.
When I am in the list view, it works, when I use
$this->data['ModelID]['fieldname']
.
But when I am in the Front list > List display > Body code none of these work!
How can I access the row data from within php in the code box?
Please give me a hint,
Anne