Created
February 23, 2012 23:20
-
-
Save chrisdpeters/1895660 to your computer and use it in GitHub Desktop.
Improving the Tutorial: Object- and Query-Driven Partials in CFWheels
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
<cfoutput> | |
<tr> | |
<td>#arguments.name#</td> | |
<td>#arguments.email#</td> | |
<td>#linkTo(text="Edit", action="edit", key=users.id, title="Edit #arguments.name#")#</td> | |
<td>#linkTo(text="Delete", action="delete", key=users.id, title="Delete #arguments.name#", confirm="Are you sure that you want to delete #arguments.name#?")#</td> | |
</tr> | |
</cfoutput> |
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
<table> | |
<thead> | |
<tr> | |
<th>Name</th> | |
<th>Email</th> | |
<th colspan="2"></th> | |
</tr> | |
</thead> | |
<tbody> | |
<cfloop query="users"> | |
<tr> | |
<td>#users.name#</td> | |
<td>#users.email#</td> | |
<td>#linkTo(text="Edit", action="edit", key=users.id, title="Edit #users.name#")#</td> | |
<td>#linkTo(text="Delete", action="delete", key=users.id, title="Delete #users.name#", confirm="Are you sure that you want to delete #users.name#?")#</td> | |
</tr> | |
</cfloop> | |
</tbody> | |
</table> |
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
<table> | |
<thead> | |
<tr> | |
<th>Name</th> | |
<th>Email</th> | |
<th colspan="2"></th> | |
</tr> | |
</thead> | |
<tbody> | |
#includePartial(users)# | |
</tbody> | |
</table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment