On Mon, Dec 13, 2010 at 1:21 AM, Ryan Schmidt <[email protected]> wrote: > > On Dec 12, 2010, at 20:10, cricket wrote: > >> You're using PagesController so, presumably, it's all the same action. >> Meaning, the same view, also (bydefault, I mean). > > No... in fact it is my understanding that that's the exclusive purpose of the > pages controller: to provide a way to display a variety of different views > without the need to explicitly define an action for each in the controller. > The action for the pages controller is always "display" but the view changes > based on the first positional parameter. See the way routes are defined in a > newly created CakePHP 1.3.6 app in app/config/routes.php:
Yeah, my bad. For the last couple of apps I've worked on, PagesController gets content from the DB. In that case, the view template itself is almost always the same. That's what I was thinking of. It's still not entirely clear what your situation is, though. Are there just a few pages that you'd want localised templates for. or many? Conversely, is it just the admin main page that you do not want localised? If the exceptions are very few then the solution could be as simple as putting a switch block in the view file itself. 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 [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
