Has somebody an working example ?

Posted by Anonymous on Nov 03, 2007 @ 12:28PM UTC

I'm new in this field, and I tried to follow the above steps but I obtained an error, and I have now idea what's wrong:

Strict Standards: Declaration of Riskle_Db_Table_Abstract::find() should be compatible with that of Zend_Db_Table_Abstract::find() in C:\Program Files\EasyPHP 2.0b1\www\zendtut\gettingstarted\library\Riskle\Db\Table\Abstract.php on line 336

Fatal error: Uncaught exception 'Zend_View_Exception' with message 'helper 'paginate' not found in path' in C:\Program Files\EasyPHP 2.0b1\www\zendtut\gettingstarted\library\Zend\View\Abstract.php:1003 Stack trace: #0 C:\Program Files\EasyPHP 2.0b1\www\zendtut\gettingstarted\library\Zend\View\Abstract.php(496): Zend_View_Abstract->_loadClass('helper', 'paginate') #1 C:\Program Files\EasyPHP 2.0b1\www\zendtut\gettingstarted\library\Zend\View\Abstract.php(298): Zend_View_Abstract->getHelper('paginate') #2 [internal function]: Zend_View_Abstract->__call('paginate', Array) #3 C:\Program Files\EasyPHP 2.0b1\www\zendtut\gettingstarted\application\views\scripts\index\index.phtml(6): Zend_View->paginate(Object(Riskle_Db_Table_Rowset_Paginate)) #4 C:\Program Files\EasyPHP 2.0b1\www\zendtut\gettingstarted\library\Zend\View.php(46): include('C:\Program File...') #5 C:\Program Files\EasyPHP 2.0b1\www\zendtut\gettingstarted\library\Zend\View\Abstract.php(768): Zend_View->_run('.\application\v...') #6 C:\Program Files\EasyPHP 2.0b1\www in C:\Program Files\EasyPHP 2.0b1\www\zendtut\gettingstarted\library\Zend\View\Abstract.php on line 1003

I used r122 version

 

Replies

  • Reply Re: Has somebody an working example ?

    Anonymous on Nov 14, 2007 @ 08:38PM UTC

    I had a similar problem and fixed it by including the riskle helper in the view path

    In the view
    $this->setHelperPath('../lib/Riskle/View/Helper', 'Riskle_View_Helper');
    $this->paginate($this->customers);

    I didn't have any problems with the error about the find method, so not sure what's going on there.

  • Reply Re: Has somebody an working example ?

    Geoffrey Bachelet on Nov 20, 2007 @ 04:31PM UTC

    Hi,

    just added the view helper bit to the page, thanks

    as for the find() problem, I'm not sure it should occur, can you paste here the definition of the find method in your riskle_db_table_abstract distribution ?

  • Reply Re: Has somebody an working example ?

    Anonymous on Dec 22, 2007 @ 08:23AM UTC

    Hi,
    Maybe your find() method has no param like this:public function find(), you should add one param like public function find($key). If you donnot add $key, it may case STRICT problem.

-->
Wiki page
Pagination Component