Subversion Repository Public Repository

Nextrek

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

class EventiController extends BaseController {

	public function eventi()
	{
		$eventi   = Eventi::where('pubblicato','=',1);
		$max_date = Eventi::max(DB::raw('YEAR(data)'));
		$min_date = Eventi::min(DB::raw('YEAR(data)'));
		$order_by = Eventi::orderBy('ordine', 'desc');

		return View::make('eventi')
					 ->with('eventi',$eventi)
					 ->with('max',$max_date)
					 ->with('min',$min_date)
					 ->with('ordine',$order_by);
	}
}

Commits for Nextrek/Aiba_backup/app/controllers/EventiController.php

Diff revisions: vs.
Revision Author Commited Message
1464 MOliva picture MOliva Tue 13 Oct, 2020 11:16:56 +0000