Template helpers refactoring

This commit is contained in:
Frédéric Guillot
2014-12-28 11:28:50 -05:00
parent 88d84073ae
commit 34d7450d3c
155 changed files with 1605 additions and 1609 deletions

View File

@@ -5,7 +5,7 @@
</div>
<?php foreach ($comments as $comment): ?>
<?= Helper\template('comment/show', array(
<?= $this->render('comment/show', array(
'comment' => $comment,
'task' => $task,
'project' => $project,
@@ -15,10 +15,10 @@
<?php endforeach ?>
<?php if (! isset($not_editable)): ?>
<?= Helper\template('comment/create', array(
<?= $this->render('comment/create', array(
'skip_cancel' => true,
'values' => array(
'user_id' => Helper\get_user_id(),
'user_id' => $this->acl->getUserId(),
'task_id' => $task['id'],
),
'errors' => array(),