On Tue, Mar 3, 2009 at 5:20 AM, lakers fan <lakersfa...@msn.com> wrote: > Hello, > Can I create all the view files inside one directory. Right now what I > understood is you got to create a folder named after controller. if I have > many controllers, does it mean that I have to create that many folders for > view files?
How would you make the distinction between the edit view for one controller or another? Or add, or anything else? You could name them as, "controller_name_edit.ctp" for instance, but you'd have to specify the $viewPath and render() for *every* action. Granted, the $viewPath would always be the same, so maybe it would be sufficient to specify it in AppController::beforeFilter(). Maybe. That seems like a huge pain for little gain. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---