Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
d05d018f
Commit
d05d018f
authored
Nov 28, 2014
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Setting theme on homecontroller
parent
0b7ab74c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
+18
-18
HomeController.php
app/Http/Controllers/HomeController.php
+15
-18
routes.php
app/Http/routes.php
+3
-0
No files found.
app/Http/Controllers/HomeController.php
View file @
d05d018f
...
...
@@ -2,25 +2,22 @@
use
Illuminate\Routing\Controller
;
class
HomeController
extends
Controller
{
class
HomeController
extends
Controller
{
/*
|--------------------------------------------------------------------------
| Home Controller
|--------------------------------------------------------------------------
|
| Controller methods are called when a request enters the application
| with their assigned URI. The URI a method responds to may be set
| via simple annotations. Here is an example to get you started!
|
*/
public
$theme
;
/**
* @Get("/")
*/
public
function
index
()
{
return
view
(
'hello'
);
}
public
function
__construct
()
{
$this
->
theme
=
'demo'
;
}
/**
* @Get("/")
*/
public
function
index
()
{
return
view
(
'index'
);
}
}
app/Http/routes.php
0 → 100644
View file @
d05d018f
<?php
Route
::
get
(
'/'
,
'HomeController@index'
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment