at last I understand ;-)
Thank's, AD7six for your patience ;)
I understand ;-) Sorry for a lot question ;-)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to ca
Strange, but when I switch to language other then default I got
$this->uses == ''
Then I think that locale "switch" tables, but unknown method for me (I
look locale.php from first to last string and don't find anything about
switching table...
But when language switching, $this->{$this->uses}->fi
PS Fernando,
That's quite a long way round ;). I wrote some starting out tips you
can find here:
http://www.noswad.me.uk/MiBlog/Blogs/View/CakePHPQuickTips.
cheers,
AD7six
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Hi Vlad,
I don't quite undertstand, but:
Switching tables would be something that you would do yourself - the
locale package I wrote doesn't take care of this (note that for 1.2 it
is planned to take care of translating db content).
There is a 'feature' of the locale package which has existed s
I think when you have other language select it would have to look like
"RPosts" or "UPosts"... have you tried something like:
function index ()
{
$this->set('data', $this->uses);
}
And then in your view:
print_r($data);
It's a good way to find your "$this->uses" value...
Hope it help
May be I write not so correct...
So, I mean:
when default language select: I get two request to DB Posts
But when I select other lang, I don't see any mysql query ;-(
I have:
class PostsController
var $uses = 'Post';
function index ()
{
$this->set('data',$this->{$this->uses}->findAll())
After AD7six comment. I'll do all right ;-)
And I see how switch template: index.thtml (main-default) &
index_ua_ua.thtml, index_ru_ru.thtml - for other.
But I don't understand one petit thing. How switch table?
I thing, I needing two table
Posts: id, title, body (english)
RPosts: id, title,