forked from cfwheels/cfwheels
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
#linkTo(text="Log Out", controller="account", action="logout")# | ||
<!--- Ouputs: <a href="/account/logout">Log Out</a> ---> | ||
<!--- Outputs: <a href="/account/logout">Log Out</a> ---> | ||
|
||
<!--- If you're already in the `account` controller, CFWheels will assume that's where you want the link to point ---> | ||
#linkTo(text="Log Out", action="logout")# | ||
<!--- Ouputs: <a href="/account/logout">Log Out</a> ---> | ||
<!--- Outputs: <a href="/account/logout">Log Out</a> ---> | ||
|
||
#linkTo(text="View Post", controller="blog", action="post", key=99)# | ||
<!--- Ouputs: <a href="/blog/post/99">View Post</a> ---> | ||
<!--- Outputs: <a href="/blog/post/99">View Post</a> ---> | ||
|
||
#linkTo(text="View Settings", action="settings", params="show=all&sort=asc")# | ||
<!--- Ouputs: <a href="/account/settings?show=all&amp;sort=asc">View Settings</a> ---> | ||
<!--- Outputs: <a href="/account/settings?show=all&amp;sort=asc">View Settings</a> ---> | ||
|
||
<!--- Given that a `userProfile` route has been configured in `config/routes.cfm` ---> | ||
#linkTo(text="Joe's Profile", route="userProfile", userName="joe")# | ||
<!--- Ouputs: <a href="/user/joe">Joe's Profile</a> ---> | ||
<!--- Outputs: <a href="/user/joe">Joe's Profile</a> ---> | ||
|
||
<!--- Link to an external website ---> | ||
#linkTo(text="ColdFusion Framework", href="http://cfwheels.org/")# | ||
<!--- Ouputs: <a href="http://cfwheels.org/">ColdFusion Framework</a> ---> | ||
<!--- Outputs: <a href="http://cfwheels.org/">ColdFusion Framework</a> ---> | ||
|
||
<!--- Give the link `class` and `id` attributes ---> | ||
#linkTo(text="Delete Post", action="delete", key=99, class="delete", id="delete-99")# | ||
<!--- Ouputs: <a class="delete" href="/blog/delete/99" id="delete-99">Delete Post</a> ---> | ||
<!--- Outputs: <a class="delete" href="/blog/delete/99" id="delete-99">Delete Post</a> ---> | ||
|