This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » legacy support » symfony 1.2 » Pagination
Pagination [message #97344] Wed, 14 April 2010 12:08 Go to next message
parijatkalia  is currently offline parijatkalia
Messages: 69
Registered: July 2009
Member
Hey everyone,

I have been trying to paginate some results that I have. The link that I am following is this:
http://symfonynerds.com/blog/?p=12

word for word, off course, it has the necessary changes as per the DB query. all of which I have tested, and work just fine

In my action, the pager object was initiated and then passed as a variable to the template as

$this->records = $pager (the pager object that I had defined)

However, when I use the $records->haveToPaginate() function in the template, I get

Call to a member function getResults() on a non-object.

I am lost here and clueless. Anyone with any leads?

Re: Pagination [message #97372 is a reply to message #97344 ] Wed, 14 April 2010 18:45 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
Can we see the relevant bits of your action code, and your template code?

-- in [code] tags please.

[Updated on: Wed, 14 April 2010 18:45]


Remember Palestine
Re: Pagination [message #99068 is a reply to message #97344 ] Fri, 14 May 2010 14:18 Go to previous messageGo to next message
thewebdesignguru  is currently offline thewebdesignguru
Messages: 8
Registered: May 2010
Location: Manchester
Junior Member
did you do $pager->init() before the call?
Re: Pagination [message #99096 is a reply to message #97344 ] Fri, 14 May 2010 19:38 Go to previous message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
@thewebdesignguru - the post is a month old, presumably the OP has lost interest Shocked


Remember Palestine
Previous Topic:Problem with propel:build-all (with SfGuardUser foreign keys)
Next Topic:Form select with session
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software