Hi Karim,
I am using only one table 'pages' and one model 'Page'
'Translation' is the key under which the results for translations are
returned from the model.
The beforeFind action ads the language key to the query (which I set
using Configure::write('lang','... language key ') ) and repla
oleonav,
Could you please specify exactly what your DB schema is. I'm not sure
if you have 2 tables a "translate" table (and model) and a "page"
table (and model) or if you are really just working with 1 "page"
table (and model). Can you confirm?
--~--~-~--~~~---~--~-
In response of Karim's request...
The standard way of implementing translations in the default cake core
is, to my opinion, very resource intensive. It uses a lot of sub-
queries when a lot of fields in a table need translations.
At this stage I'm using the following setup in my solutions:
Exam