mirror of
https://github.com/claradex/nativegallery.git
synced 2025-06-05 05:47:00 +03:00
21 lines
409 B
PHP
21 lines
409 B
PHP
<?php
|
|
|
|
namespace App\Controllers\Api\Admin\News;
|
|
|
|
|
|
|
|
use App\Services\{Auth, Router, GenerateRandomStr, DB, Json, EXIF, Date};
|
|
use App\Models\{User, Vote, Photo};
|
|
|
|
|
|
class Load
|
|
{
|
|
public function __construct()
|
|
{
|
|
$news = DB::query('SELECT * FROM news ORDER BY id');
|
|
foreach ($news as $n) {
|
|
$nn = new \App\Models\Admin\News($n['id']);
|
|
$nn->view();
|
|
}
|
|
}
|
|
}
|