diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-01-31 21:44:49 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-01-31 21:44:49 -0500 |
commit | 26492aba7ee2bfb8c525ea0aaa580aff47a414ba (patch) | |
tree | de2ebb411685057a2a8723ca7f763966478a39f7 /app/Controller/Category.php | |
parent | 271543431e999032d6e91197633119309fa6c622 (diff) |
Simplify layout and templates generation
Diffstat (limited to 'app/Controller/Category.php')
-rw-r--r-- | app/Controller/Category.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Controller/Category.php b/app/Controller/Category.php index a0af4139..258a3b78 100644 --- a/app/Controller/Category.php +++ b/app/Controller/Category.php @@ -38,7 +38,7 @@ class Category extends Base { $project = $this->getProject(); - $this->response->html($this->projectLayout('category/index', array( + $this->response->html($this->helper->layout->project('category/index', array( 'categories' => $this->category->getList($project['id'], false), 'values' => $values + array('project_id' => $project['id']), 'errors' => $errors, @@ -81,7 +81,7 @@ class Category extends Base $project = $this->getProject(); $category = $this->getCategory($project['id']); - $this->response->html($this->projectLayout('category/edit', array( + $this->response->html($this->helper->layout->project('category/edit', array( 'values' => empty($values) ? $category : $values, 'errors' => $errors, 'project' => $project, @@ -123,7 +123,7 @@ class Category extends Base $project = $this->getProject(); $category = $this->getCategory($project['id']); - $this->response->html($this->projectLayout('category/remove', array( + $this->response->html($this->helper->layout->project('category/remove', array( 'project' => $project, 'category' => $category, 'title' => t('Remove a category') |