Hello all, Based on what I have read from the documentation, the recommended way of naming your controller class is the plural form of the model they use. So if I have Post model then the controller class should be PostsController but what is the recommended name for a controller that does not use a model? For example, I wanted to have something like an Admin controller with actions like, addpage, removepage etc. Does that name break the CakePHP way? Does having /admin/addpage/3 lets say, breaks the CakePHP way of doing things? I would like to have a central location(controller) where I manage the content of the site pretty much instead of having page/add, page/edit etc for all my models.
Also, according to the documentation using requestAction(this may not be the right name) is not a good idea to use inside controllers but If I want to have a frontpage that displays the lastest 5 items of something like news for example what is the alternative or correct way of doing it? Also the documentation states that it is not good idea to use this method without caching, does this mean caching in general or an specific caching method? Here is the quote from the documentation: "If used without caching requestAction can lead to poor performance. It is rarely appropriate to use in a controller or model." Any info would be very welcome. Take care. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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?hl=en -~----------~----~----~----~------~----~------~--~---
