Skip to content

Commit

Permalink
use CMS'd page views
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaddles23 committed Jan 23, 2018
1 parent 8955ea4 commit 06628f3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Http/Controllers/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ public function view($id)
} else {
$page_table = null;
}

if( isset($model->edit_action) ){
if( isset($model->package) ) {
return view($model->package . '::' . $model->edit_action, ['hint' => $this->hint, 'model' => $model, 'page_table' => $page_table]);
}
return view($model->edit_action, ['hint' => $this->hint, 'model' => $model, 'page_table' => $page_table]);
}

return soda_cms_view('page.view', ['hint' => $this->hint, 'model' => $model, 'page_table' => $page_table]);
}
Expand Down

0 comments on commit 06628f3

Please sign in to comment.