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
fefc202c
Commit
fefc202c
authored
Nov 08, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweak comments in the default controller.
parent
6f60c448
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
home.php
application/controllers/home.php
+3
-7
No files found.
application/controllers/home.php
View file @
fefc202c
...
...
@@ -12,11 +12,7 @@ class Home_Controller extends Controller {
|
| To start using this controller, simply 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 "get_index".
|
| Just like routes, controllers are also RESTful by default. Each method
| is prefixed with the HTTP verb it responds to, allowing you to quickly
| build beautiful RESTful applications.
| controller and call the default method, which is "action_index".
|
| This controller responds to URIs beginning with "home", and it also
| serves as the default controller for the application, meaning it
...
...
@@ -24,14 +20,14 @@ class Home_Controller extends Controller {
|
| You can respond to GET requests to "/home/profile" like so:
|
| public function
get
_profile()
| public function
action
_profile()
| {
| return "This is your profile!";
| }
|
| Any extra segments are passed to the method as parameters:
|
| public function
get
_profile($id)
| public function
action
_profile($id)
| {
| return "This is the profile for user {$id}.";
| }
...
...
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