[symfony-users] Re: SFPropelPager

2010-10-26 Thread Richtermeister
Hey Parijat, no problem, the query I speak of is documented here (Propel15 - you should be able to use that right away, it's fully compatible). http://www.propelorm.org/wiki/Documentation/1.5/WhatsNew#ModelQueries Also, the $page variable I just threw in to illustrate. In reality it would look li

Re: [symfony-users] Re: SFPropelPager

2010-10-25 Thread Parijat Kalia
Daniel...thanks! Haven't encountered the paginate function as such in the walkthrough I referredhere is what I did: $pagerOp = new sfPropelPager('Questions',5); $pagerOp->setCriteria($c); $pagerOp->setPage($this->getRequestParameter('page', 1)); $pagerOp->init(); Not s

[symfony-users] Re: SFPropelPager

2010-10-25 Thread Richtermeister
Hey there, without knowing exactly what your issue is, if you're using Propel15 (as you could and should ;) you can just use $query -> paginate($page, $per_page); and that works guaranteed. Daniel On Oct 24, 11:05 pm, Parijat Kalia wrote: > Hey guys, running into a cheesy error with sf propel

[symfony-users] Re: sfPropelPager and I18n

2008-08-18 Thread Kamikaze
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. > > $

[symfony-users] Re: sfPropelPager and LEFT JOINs

2007-04-02 Thread Alexander Deruwe
On 02 Apr 2007, at 17:06, [EMAIL PROTECTED] wrote: > You should use > $pager->setPeerMethod('doSelectJoin') ; > and probably: > $pager->setPeerCountMethod('doCountJoinXXX') ; Yep, that was it! Thanks so much. Alexander --~--~-~--~~~---~--~~ You received thi

[symfony-users] Re: sfPropelPager and LEFT JOINs

2007-04-02 Thread [EMAIL PROTECTED]
You should use $pager->setPeerMethod('doSelectJoin') ; and probably: $pager->setPeerCountMethod('doCountJoinXXX') ; Nautile On 2 avr, 17:00, Alexander Deruwe <[EMAIL PROTECTED]> wrote: > Good afternoon, > > I'm puzzled by something... I'm using sfPropelPager to show data > from a table. >