| Línea 101... |
Línea 101... |
| 101 |
|
101 |
|
| 102 |
$acl = $this->getEvent()->getViewModel()->getVariable('acl');
|
102 |
$acl = $this->getEvent()->getViewModel()->getVariable('acl');
|
| 103 |
$allowAdd = $acl->isAllowed($currentUser->usertype_id, 'my-trainer/answer/add');
|
103 |
$allowAdd = $acl->isAllowed($currentUser->usertype_id, 'my-trainer/answer/add');
|
| 104 |
$allowEdit = $acl->isAllowed($currentUser->usertype_id, 'my-trainer/answer/edit');
|
104 |
$allowEdit = $acl->isAllowed($currentUser->usertype_id, 'my-trainer/answer/edit');
|
| 105 |
$allowDelete = $acl->isAllowed($currentUser->usertype_id, 'my-trainer/answer/delete');
|
- |
|
| 106 |
$page = $this->params()->fromQuery('page', 1);
|
- |
|
| Línea 107... |
Línea 105... |
| 107 |
$perpage = $this->params()->fromQuery('perpage', 20);
|
105 |
$allowDelete = $acl->isAllowed($currentUser->usertype_id, 'my-trainer/answer/delete');
|
| 108 |
|
106 |
|
| 109 |
$form = new CreateFeedForm($this->adapter);
|
107 |
$form = new CreateFeedForm($this->adapter);
|
| Línea 115... |
Línea 113... |
| 115 |
$viewModel = new ViewModel();
|
113 |
$viewModel = new ViewModel();
|
| 116 |
$this->layout()->setTemplate('layout/layout-backend');
|
114 |
$this->layout()->setTemplate('layout/layout-backend');
|
| 117 |
$viewModel->setTemplate('leaders-linked/my-trainer-answer/index.phtml');
|
115 |
$viewModel->setTemplate('leaders-linked/my-trainer-answer/index.phtml');
|
| 118 |
$viewModel->setVariables([
|
116 |
$viewModel->setVariables([
|
| 119 |
'form' => $form,
|
117 |
'form' => $form,
|
| 120 |
'page' => $page,
|
- |
|
| 121 |
'perpage' => $perpage,
|
- |
|
| 122 |
'question_title' => $question->title,
|
118 |
'question_title' => $question->title,
|
| 123 |
'question_description' => $question->description,
|
119 |
'question_description' => $question->description,
|
| Línea 124... |
Línea 120... |
| 124 |
|
120 |
|
| 125 |
]);
|
121 |
]);
|