Consistency updates for use of viewpath()
This commit is contained in:
@@ -25,7 +25,7 @@ class Controller_StaticPage extends Controller_TemplateDefault {
|
||||
|
||||
Block::add(array(
|
||||
'title'=>$sp->staticpage_translate->find()->title,
|
||||
'body'=>View::factory('staticpage/view')
|
||||
'body'=>View::factory($this->viewpath())
|
||||
->set('record',$sp),
|
||||
));
|
||||
}
|
||||
|
@@ -15,6 +15,10 @@ class Controller_StaticPage_Category extends Controller_TemplateDefault {
|
||||
* By default show a menu of available categories
|
||||
*/
|
||||
public function action_index() {
|
||||
Request::current()->redirect('staticpage_category/list');
|
||||
}
|
||||
|
||||
public function action_list() {
|
||||
Block::add(array(
|
||||
'title'=>_('Site Index Categories'),
|
||||
'body'=>View::factory('staticpage/category/list')
|
||||
|
Reference in New Issue
Block a user