Thanks.
I have changed my code but am still getting empty output:
Code:
public function getBrandsAlpha()
{
if (!isset($this->brands)) {
$this->brands = $this->getBrands();
}
$this->aBrandsAlpha = array();
foreach ($this->brands as $k => $aBrand) {
$initial = substr($aBrand[0], 0, 1);
$this->aBrandsAlpha[$initial][] = $aBrand;
}
return $this->aBrandsAlpha;
}
public function getBrandCols()
{
if (!isset($this->columns)) {
$this->columns = array_chunk($this->getBrandsAlpha(), $this->getColumnsCount());
}
return $this->columns;
}
If I try and call the getBrandsAlpha function directly - I still get no output.
Where am I going wrong?
Jan