You don't need another controller or action if all of this elements applies to posts.
First prepare 3 column layout: http://book.cakephp.org/view/1080/Layouts And then use view elements: http://book.cakephp.org/view/1081/Elements One element for latest 20 posts, one for top viewed and one for top viewed of month. On 3 Lip, 12:24, Ahmet Kemal <ahmetkemala...@gmail.com> wrote: > Hello, > > I am new at CakePhp. I want to create a website that has 3 columns. > One column for latest 20 post, second column for top viewed posts this > week and third column for top viewed posts this month. I succeeded > coding one column but my mind frozen about finding a way to implement > other columns. Should I add code to index() controller or build > another controller and view for rest columns? > > Thanks for assistance, > > Kemal Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en