Could it be possible to pass the values in partial loop. for code
EDIT:: in my file where partial is called, i’ve another array to pass. and i want S/N for array
<?php echo $this->partialLoop("partials/destination.phtml", $this->deslist);?>
and i my partial/destination.phtml file i have
<td><?php echo ++$count; ?></td>
i am getting warning message
Notice: Undefined variable: count in
/var/www/globaltours.com/application/modules/admin/views/scripts/partials/destination.phtml
on line 2 1
i wanted to display the count(order) of the items
View variables are in
$this; use$this->countto access thecountvariable:Assuming you have passed the variable to the view like this: