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 helps...
Fernando Kreigne
[EMAIL PROTECTED] wrote:
> 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());
> }
>
> And I understand: when default, $this->uses = 'Post'. But when I select
> other language?
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---