Symfony and doctrine searchable sfDoctrinePager (symfony 1.4)

Posted by Joeri on Stack Overflow See other posts from Stack Overflow or by Joeri
Published on 2010-06-08T16:45:47Z Indexed on 2011/01/05 7:54 UTC
Read the original article Hit count: 598

Filed under:
|
|

Can someone help me on paginating results with sfDoctrinePager?

$articlesResults = Doctrine::getTable('Article')
                                            ->getTemplate('Doctrine_Template_I18n')
                                            ->getPlugin()
                                            ->getTable()
                                            ->getGenerator('Doctrine_Search')
                                            ->search($searchTerm);

This is the code I use to get the search results, this works fine, but I'm stuck on paginating them with sfDoctrinePager. Tnx for the help.

© Stack Overflow or respective owner

Related posts about php

Related posts about symfony