2010-07-15 44 views

回答

1

這可以通過使用這樣的代碼來實現,假設你有有CommentController.php

function listComments(){ 

/* Write code here to fetch comments with current post from db and 
    return template code via calling renderPartial(). 
    Also implement paging, sorting etc. in this same function. 
*/ 

} 

後調用在查看後頁面動作此功能,並通過評論的上市代碼視圖文章範本。