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

@@ -59,7 +59,7 @@ class Controller_User_Statement extends Controller_TemplateDefault_User {
));
$output = (string)$pag;
$output .= View::factory('statement/user/show_head');
$output .= View::factory($this->viewpath().'/head');
$i = 0;
foreach ($ta as $k => $v) {
@@ -68,12 +68,12 @@ class Controller_User_Statement extends Controller_TemplateDefault_User {
elseif ($i > $pag->current_last_item())
break;
$output .= View::factory('statement/user/show_body')
$output .= View::factory($this->viewpath().'/body')
->set('o',$v)
->set('trc',$i%2 ? 'odd' : 'even');
}
$output .= View::factory('statement/user/show_foot');
$output .= View::factory($this->viewpath().'/foot');
Block::add(array(
'title'=>sprintf('%s: %s - %s',_('Transactions For'),$this->ao->accnum(),$this->ao->name(TRUE)),