Skip to content

Commit

Permalink
making use of the image selector
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed May 19, 2010
1 parent b6816ef commit 7a81bd1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions infinitas/shop/controllers/shop_categories_controller.php
Expand Up @@ -132,7 +132,7 @@ function admin_add(){
}

$parents = $this->ShopCategory->generatetreelist(null, null, null, '_');
$images = $this->ShopCategory->Image->find('list');
$images = $this->ShopCategory->Image->getImagePaths();
$branches = $this->ShopCategory->ShopBranch->find('list');
$this->set(compact('parents', 'images', 'branches'));
}
Expand All @@ -155,7 +155,7 @@ function admin_edit($id = null){
}

$parents = $this->ShopCategory->generatetreelist(null, null, null, '_');
$images = $this->ShopCategory->Image->find('list');
$images = $this->ShopCategory->Image->getImagePaths();
$shopBranches = $this->ShopCategory->ShopBranch->find('list');
$this->set(compact('parents', 'images', 'shopBranches'));
}
Expand Down
4 changes: 2 additions & 2 deletions infinitas/shop/controllers/specials_controller.php
Expand Up @@ -86,7 +86,7 @@ function admin_add(){

$shopBranches = $this->Special->ShopBranch->getList();
$products = $this->Special->Product->find('list');
$images = $this->Special->Image->find('list');
$images = $this->Special->Image->getImagePaths();

$maxPrice = $this->Special->Product->find(
'all',
Expand Down Expand Up @@ -136,7 +136,7 @@ function admin_edit($id = null){

$shopBranches = $this->Special->ShopBranch->getList();
$products = $this->Special->Product->find('list');
$images = $this->Special->Image->find('list');
$images = $this->Special->Image->getImagePaths();
$this->set(compact('shopBranches', 'products', 'images'));
}

Expand Down
4 changes: 2 additions & 2 deletions infinitas/shop/controllers/spotlights_controller.php
Expand Up @@ -83,7 +83,7 @@ function admin_add(){

$shopBranches = $this->Spotlight->ShopBranch->getList();
$products = $this->Spotlight->Product->find('list');
$images = $this->Spotlight->Image->find('list');
$images = $this->Spotlight->Image->getImagePaths();
$this->set(compact('shopBranches', 'products', 'images'));
}

Expand All @@ -106,7 +106,7 @@ function admin_edit($id = null){

$shopBranches = $this->Spotlight->ShopBranch->getList();
$products = $this->Spotlight->Product->find('list');
$images = $this->Spotlight->Image->find('list');
$images = $this->Spotlight->Image->getImagePaths();
$this->set(compact('shopBranches', 'products', 'images'));
}
}

0 comments on commit 7a81bd1

Please sign in to comment.