Thanks for you quick reply!

My idea is that during the views, I call a funciton such as
articleList('9'[,'parameter2','parameter3']), and the parameter(s) of
articleList() is/are to tell ArticleController how many articles to
show(Here is 9). With the benifit, I won't need to write more the one
method to realize the same LIST function but just a few difference in
somewhere else. The code below:

class ArticleController {
    function articleList($limit,$order='created DESC') {
        $this->article->findAll(null,null,$order,$limit);
    }
}

I'm sorry for my bad English which is not my native language. I wish
you could reach my thought. :P

Thanks,

Fasthold


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to