1 | <?php namespace Arcanesoft\Foundation\Bases; |
||
9 | class FoundationController extends Controller |
||
10 | { |
||
11 | /* ------------------------------------------------------------------------------------------------ |
||
12 | | Properties |
||
13 | | ------------------------------------------------------------------------------------------------ |
||
14 | */ |
||
15 | /** |
||
16 | * The view namespace. |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $viewNamespace = 'foundation'; |
||
21 | |||
22 | /* ------------------------------------------------------------------------------------------------ |
||
23 | | Constructor |
||
24 | | ------------------------------------------------------------------------------------------------ |
||
25 | */ |
||
26 | /** |
||
27 | * Instantiate the controller. |
||
28 | */ |
||
29 | public function __construct() |
||
36 | |||
37 | /* ------------------------------------------------------------------------------------------------ |
||
38 | | Breadcrumbs Functions |
||
39 | | ------------------------------------------------------------------------------------------------ |
||
40 | */ |
||
41 | /** |
||
42 | * Get the breadcrumbs home item (root). |
||
43 | * |
||
44 | * @return array |
||
45 | */ |
||
46 | protected function getBreadcrumbsHomeItem() |
||
53 | |||
54 | /* ------------------------------------------------------------------------------------------------ |
||
55 | | Views Functions |
||
56 | | ------------------------------------------------------------------------------------------------ |
||
57 | */ |
||
58 | /** |
||
59 | * Display the view. |
||
60 | * |
||
61 | * @param string $name |
||
62 | * @param array $data |
||
63 | * |
||
64 | * @return \Illuminate\View\View |
||
65 | */ |
||
66 | protected function view($name, array $data = []) |
||
74 | |||
75 | /** |
||
76 | * Do random stuff before rendering view. |
||
77 | */ |
||
78 | protected function beforeViewRender() |
||
82 | } |
||
83 |