To be exact:
- I don't need (but I can live with) language in URL for actions which
are rendered in browser (I can store them in session/cookie)
- I need language in URL for webservices or for devices with no
session-id save mechanism (no cookies, no trans-sid) - in this time I'm
just filtering th
Hi AD7six,
> Sure you can, it´ll be in the variable $_SESSION.
...in case php is configured for session autostart.
> It would introduce a couple of additional complexities - but the
> duplication of your sql query cache is likely to be less of a problem
> than rendering a file in the wrong langu
Hi Mouth,
mouth wrote:
> - I don't think You can access session variables in
> cake/config/paths.php
Sure you can, it´ll be in the variable $_SESSION.
> - CACHE constant is used not for view-cahing only and I'm definitely
> not going create subfolders 'models' and 'persistent' for every
> langu
Hi AD7six,
thank You for Your idea, but ;-)
- I don't think You can access session variables in
cake/config/paths.php (or: without some problems, or: without cake's
session security checks) - class CakeSession is not declared in time
this file is parsed
- CACHE constant is used not for view
mouth,
I had some inspiration, it requires a slight hack.
In cake/config/paths there is:
define('CACHE', TMP.'cache'.DS);
If instead you changed it to be
$Language = .. get from session, if default return NULL;
if ($Langauge) {
define('CACHE', TMP.'cache'.DS.$Language.DS);
} else {
define('CAC
if you solution that problem maybe u can write about this in the cake
wiki ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubs
Hi AD7six and thanks for Your answer.
This is exactly what I was afraid of, as it looks I have to define all
my custom routes again and again for every language just in
app/config/routes.php.
And - I really don't want to fight again ;) with $base and similar
properties of view/helper instances j
Hi mouth,
This is the line that probably matters 4 U, in cake/bootstrap.php:
$filename = CACHE . 'views' . DS . convertSlash($uri) . '.php';
Assuming that your language is stored in the session, and you want the
least hacky way I would suggest an approach like this:
* in /app/config/bootstrap.ph
intresting.. someone gosu can speeak about that problem..
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this gro
I think You misunderstood my need.
- I want to use caching of some views (controller's actions)
- view (controller's action) can produce more then one output - in
dependency of selected locale - I'm using I18n and L10n classes from
CakePHP 1.2 with current trunk code
I can not use with every te
Hmm I have a multilingual site, and cacheing is enabled, but I never
really checked if the pages are cached. Each page is rendered so i
guess its caching as normal :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Hi all,
view caching is fine, but thing I'm really missing is something like
$cache_id in Smarty template engine world. If I understand CakePHP's
caching well, it is URL-based, so correct me, please:
if I want to use caching of views and want to have as many caches for
one view as I have languag
12 matches
Mail list logo