예제 #1
0
 public function remove()
 {
     $artModel = new ArtModel();
     $input = Input::all();
     $artModel->where('id', '=', $input['remove_id'])->delete();
     return view('pages.adminzone.art', ['title' => "Добавление рисунков", 'images' => $artModel->all()]);
 }
예제 #2
0
 public function index($page = 0)
 {
     $artModel = new ArtModel();
     $data = ['title' => 'Арт', 'images' => $artModel->getPage($page), 'pages_count' => ceil($artModel->getCount() / $artModel->getPerPage()), 'page_num' => $page, 'pages_max_links' => 2, 'url_prefix' => '/art/'];
     return view('pages.art', $data);
 }