2
我在我的應用程序中混淆了URL(這很棒),但是我想禁用這個分頁URL,因爲我希望用戶能夠輸入他們喜歡的任何數字。CFWheels - 查詢分頁時的DeObfuscate ID?
Settings.cfm:
<cfset set(obfuscateURLs = true) />
Home.cfc(控制器):
<cffunction name="home">
<cfparam name="params.page" default="1" />
<cfset linkList = model("link").findAll(
select="linkTitle,linkPoints,linkID,linkAuthority,linkCreated,linkUpVoteCount,linkDownVoteCount,linkCommentCount,userName,userID",
include="user",
order="linkPoints DESC",
handle="linkListPaging",
page=params.page,
perPage=5
) />
</cffunction>
Home.cfm(視圖)
<ul class="pagination">
<cfoutput>
#paginationLinks(
route="paginateLatest",
handle="linkListPaging",
page=1,
name="page",
windowSize=5,
prependToPage="<li>",
appendToPage="</li>",
classForCurrent="current"
)#
</cfoutput>
</ul>
我能執行反混淆上的根據需要基礎?
感謝, 邁克爾