Consistency updates for use of viewpath()
This commit is contained in:
@@ -26,7 +26,7 @@ class Controller_Product extends Controller_TemplateDefault {
|
||||
|
||||
Block::add(array(
|
||||
'title'=>sprintf('%s: %s',_('Category'),$cat->name),
|
||||
'body'=>View::factory('product/category/view')
|
||||
'body'=>View::factory($this->viewpath().'/view')
|
||||
->set('results',$this->_get_category($cat->id))
|
||||
->set('cat',$cat->id),
|
||||
));
|
||||
@@ -63,7 +63,7 @@ class Controller_Product extends Controller_TemplateDefault {
|
||||
|
||||
Block::add(array(
|
||||
'title'=>$po->product_translate->find()->description_short,
|
||||
'body'=>View::factory('product/view')
|
||||
'body'=>View::factory($this->viewpath())
|
||||
->set('record',$po),
|
||||
));
|
||||
}
|
||||
|
@@ -15,6 +15,10 @@ class Controller_Product_Category extends Controller_TemplateDefault {
|
||||
* By default show a menu of available categories
|
||||
*/
|
||||
public function action_index() {
|
||||
Request::current()->redirect('product_category/list');
|
||||
}
|
||||
|
||||
public function action_list() {
|
||||
Block::add(array(
|
||||
'title'=>_('Product Categories'),
|
||||
'body'=>View::factory('product/category/list')
|
||||
|
Reference in New Issue
Block a user