Consistency updates for use of viewpath()

This commit is contained in:
Deon George
2011-12-21 12:39:21 +11:00
parent a40ce27a16
commit a893527d77
42 changed files with 125 additions and 125 deletions

View File

@@ -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),
));
}

View File

@@ -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')