Nextrek
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
<?php
class EditoriaController extends BaseController {
public function editoria()
{
$last = Broker::orderBy('id', 'desc')->first();
$editoria = Editoria::find(1);
return View::make('editoria')
->with('last',$last);
}
public function broker()
{
if(Request::ajax())
{
/*$anno = Input::get('anno');
$brokers = Broker::where(DB::raw('YEAR(data_edizione)'),'=',$anno)->orderBy('data_edizione', 'desc')->get();
return Response::json($circolari);*/
}
else
{
$last = Broker::orderBy('id', 'desc')->first();
$brokers = Broker::orderBy('numero', 'DESC')->get();
return View::make('editoria.broker')
->with('last',$last)
->with('brokers',$brokers);
}
}
public function numero($numero)
{
$broker = Broker::where('numero','=',$numero)->get()->first();
$last = Broker::orderBy('id', 'desc')->first();
return View::make('editoria.numero')
->with('last',$last)
->with('broker',$broker);
}
}
|
Revision |
Author |
Commited |
Message |
1464
|
MOliva
|
Tue 13 Oct, 2020 11:16:56 +0000 |
|