Hi
Is there a way to make CakePHP cache complete view files in different
locations based on Config.language setting? F.ex:
cache
\ views
\ en-us
\ de
I overloaded CacheHelper like this (code below) and got the ability to
make my class manage View caching but what now? Is this a good
approach to such a problem?
<pre>
<?php
App::import('Helper', 'Cache');
class LocalizedCacheHelper extends CacheHelper {
function __construct() {
parent::__construct();
// all the magic needed to force CakePHP to use my class for
View
caching
$View = ClassRegistry::getObject('view');
$View->loaded['cache'] = $this;
}
// ... what next?
}
?>
</pre>
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