...
|
...
|
@@ -40,15 +40,17 @@ class Controller_Brand extends Controller_Abstract |
|
|
*/
|
|
|
public function getbrandAction()
|
|
|
{
|
|
|
$brand = $this->_request->query('brand', '');
|
|
|
$brand = trim($this->_request->query('brand', ''));
|
|
|
$brand = str_replace(array('%'), array('\%'), $brand);
|
|
|
$brands = $list = array();
|
|
|
if(empty($brand))
|
|
|
if($brand == '')
|
|
|
{
|
|
|
$brands = Facade_Brand::getBrandByState(0, 100, 1);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
$brands = Facade_Brand::getBrandByName($brand, 1);
|
|
|
|
|
|
}
|
|
|
foreach($brands as $key => $brand)
|
|
|
{
|
...
|
...
|
|