app/controllers/backend/UserController.php: use the side-menu layout
This commit is contained in:
parent
bed7b36748
commit
34d2c048f5
2 changed files with 33 additions and 31 deletions
|
|
@ -6,6 +6,11 @@ use App\Model\Data\User;
|
||||||
|
|
||||||
class UserController extends \Phalcon\Mvc\Controller
|
class UserController extends \Phalcon\Mvc\Controller
|
||||||
{
|
{
|
||||||
|
public function onConstruct()
|
||||||
|
{
|
||||||
|
$this->view->setLayout('side-menu');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $page
|
* @param $page
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,7 @@
|
||||||
|
|
||||||
<div class="section">
|
<h1>Users</h1>
|
||||||
|
|
||||||
<h1>Users</h1>
|
<table class="table table-striped table-hover">
|
||||||
|
|
||||||
<table class="table table-striped table-hover">
|
|
||||||
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -28,9 +26,8 @@
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<nav class="text-center" aria-label="Page navigation">
|
<nav class="text-center" aria-label="Page navigation">
|
||||||
{{ partial('pagination') }}
|
{{ partial('pagination') }}
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
|
||||||
|
|
|
||||||
Reference in a new issue