[+] добавлен класс для работы с конфигурацией (пока базовая реализация)
This commit is contained in:
1 parent
12ee13c3d1
commit
9708ec5419
15 files changed
+68
-19
No files matched your search
+2
-1
@@ -23,6 +23,7 @@
|
||||
use Core\Models\File;
|
||||
use Core\Models\Posts;
|
||||
use Core\Models\User;
|
||||
use Core\SystemConfig;
|
||||
|
||||
require_once __DIR__ . '/inc/header.php';
|
||||
?>
|
||||
@@ -61,7 +62,7 @@
|
||||
<tbody>
|
||||
<?php
|
||||
$objectPosts = new Posts();
|
||||
Pagination::execute($_REQUEST['page'], $objectPosts->getAllCount(), PAGINATION_LIMIT);
|
||||
Pagination::execute($_REQUEST['page'], $objectPosts->getAllCount(), SystemConfig::getValue('PAGINATION_LIMIT'));
|
||||
$limit = Pagination::getLimit();
|
||||
|
||||
$arPosts = $objectPosts->getPosts($limit);
|
||||
|
||||
Reference in new issue
Block a user