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

@@ -47,17 +47,7 @@ class Controller_User_Invoice extends Controller_TemplateDefault_User {
* View an Invoice
*/
public function action_view() {
$output = '';
if (! $id = $this->request->param('id')) {
if (isset($_POST['id']) AND is_array($_POST['id']))
Table::post('invoice_view','id');
list($id,$output) = Table::page('invoice_view');
} else {
$id = $this->request->param('id');
}
list($id,$output) = Table::page(__METHOD__);
$io = ORM::factory('invoice',$id);
@@ -66,7 +56,7 @@ class Controller_User_Invoice extends Controller_TemplateDefault_User {
return FALSE;
}
$output .= View::factory('invoice/user/view')
$output .= View::factory($this->viewpath())
->set('mediapath',Route::get('default/media'))
->set('io',$io);