On Dec 13, 2010, at 18:11, AD7six wrote: > if you want to localize whole view files - why not just add some/other/path > to the paths cake checks for them (see config/bootstrap) instead of trying to > change a specific view file in beforeRender.
Because I didn't realize CakePHP had the capability to check multiple view paths built-in! That should be helpful, thanks. > Personally, I have /locale/lang/views auto added as an additional path to > check for view files which makes /locale/spa/views/pages/conciciones.ctp > (etc.) very easy to handle. That would be nice. I too would like the language selectable via a URL parameter. Where do you hook that up? I've seen a recommendation to use the beforeFilter() method in app_controller.php, but that seems too late if I'm going to set an additional view path in config/bootstrap.php based on the URL. Where do you set up your additional view path, and where do you pull the language out of the URL and hand it to Configure::write() to set the language? 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
