http://www.symfony-project.org/forum/index.php/t/14991/
I did this a few days ago, see it.

On 11 ago, 03:29, "roman.svet" <[EMAIL PROTECTED]> wrote:
> Hi to all,
>
> I have a page with list of articles. Page should be in two languages.
> I used the following code to create pager on my page.
>
> $pager = new sfPropelPager('Article', 10);
>   $c = new Criteria();
>   $c->addDescendingOrderByColumn(ArticlePeer::PUBLISHED_DATE);
>   $pager->setCriteria($c);
>   $pager->setPage($this->getRequestParameter('page', 1));
>   $pager->setPeerMethod('doSelectWithI18n');
>   $pager->init();
>
>   $this->article_pager = $pager;
>
> all work fine for default culture, but I can found how to pass another
> culture to display articles in another language? Can anybody help me?
> Thanks.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to