Adding backend/LogController::index()
This commit is contained in:
parent
778c7127b3
commit
5fb9880a1b
3 changed files with 58 additions and 0 deletions
21
app/controllers/backend/LogController.php
Normal file
21
app/controllers/backend/LogController.php
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
namespace App\Controller\Backend;
|
||||
|
||||
use App\Model\Data\ActivityLog;
|
||||
|
||||
class LogController extends \Phalcon\Mvc\Controller
|
||||
{
|
||||
public function onConstruct()
|
||||
{
|
||||
$this->view->setLayout('side-menu');
|
||||
}
|
||||
|
||||
public function indexAction($page = 1)
|
||||
{
|
||||
$paginator = ActivityLog::getAllPaginationList($page);
|
||||
|
||||
$this->view->page = $paginator->getPaginate();
|
||||
$this->view->pagination_url = '/admin/log/';
|
||||
}
|
||||
}
|
||||
Reference in a new issue