Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Yeray Santana Hualde
syncEnrollments
Commits
8443cef3
Commit
8443cef3
authored
Oct 25, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added some notes to the home controller.
parent
d4ddb05a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
home.php
application/controllers/home.php
+32
-0
No files found.
application/controllers/home.php
View file @
8443cef3
...
@@ -2,6 +2,38 @@
...
@@ -2,6 +2,38 @@
class
Home_Controller
extends
Controller
{
class
Home_Controller
extends
Controller
{
/*
|--------------------------------------------------------------------------
| The Default Controller
|--------------------------------------------------------------------------
|
| Instead of using RESTful routes and anonymous functions, you may wish to
| use controllers to organize your application API. You'll love them.
|
| To start using this controller, simple remove the default route from the
| application "routes.php" file. Laravel is smart enough to find this
| controller and call the default method, which is "index".
|
| This controller responds to URIs beginning with "home", and it also
| serves as the default controller for the application, meaning it
| handles requests to the root of the application.
|
| You can respond to requests to "/home/profile" like so:
|
| public function profile()
| {
| return "This is your profile!";
| }
|
| Any extra segments are passed to the method as parameters:
|
| public function profile($id)
| {
| return "This is the profile for user {$id}.";
| }
|
*/
public
function
index
()
public
function
index
()
{
{
return
View
::
make
(
'home.index'
);
return
View
::
make
(
'home.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