[symfony-users] Re: Problem with sfPropelPager.class.php
What's in EstatePeer::getOverview() ? On Fri, Sep 18, 2009 at 11:51 PM, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: I got a problem with the pager: Fatal error: __clone method called on non-object in /symfony/sf1.2/lib/ plugins/sfPropelPlugin/lib/addon/sfPropelPager.class.php on line 40 This is my code: public function executeOverview(sfWebRequest $oRequest){ $oPager = new sfPropelPager('Estate', 3); $oPager-setCriteria(EstatePeer::getOverview()); $oPager-setPage($oRequest-getParameter('page', 1)); $oPager-init(); $this-pager = $oPager; } Does someone know what is wrong? -- Blue Horn Ltd - System Development http://bluehorn.co.nz --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Problem with sfPropelPager.class.php
Ah, problem solved. Problem with my criteria. On 18 sep, 13:53, Sid Bachtiar sid.bacht...@gmail.com wrote: What's in EstatePeer::getOverview() ? On Fri, Sep 18, 2009 at 11:51 PM, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: I got a problem with the pager: Fatal error: __clone method called on non-object in /symfony/sf1.2/lib/ plugins/sfPropelPlugin/lib/addon/sfPropelPager.class.php on line 40 This is my code: public function executeOverview(sfWebRequest $oRequest){ $oPager = new sfPropelPager('Estate', 3); $oPager-setCriteria(EstatePeer::getOverview()); $oPager-setPage($oRequest-getParameter('page', 1)); $oPager-init(); $this-pager = $oPager; } Does someone know what is wrong? -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---