Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-09-2008, 09:36 AM
Junior Member
 
Join Date: Mar 2008
Posts: 7
Default trouble while creating new instance of Zend_Db_Table_Abstract

I wrote some code:

Code:
class Webshop_CategoryController extends Base_Controller {

	public function indexAction() {
		$categoryTable = new CategoryTable();
                // ....................................................
	}
}
This action called from template:

HTML Code:
<? echo $this->action('index', 'category', 'webshop'); ?>
The code:
Code:
$categoryTable = new CategoryTable();
returns error which I log by logger:

mess: Commands out of sync; you can't run this command now
#0 /mnt/storage/development/projects/akros/akros-zz/library/Zend/Db/Table/Abstract.php(605): Zend_Db_Adapter_Mysqli->describeTable('tl_category', NULL)
#1 /mnt/storage/development/projects/akros/akros-zz/library/Zend/Db/Table/Abstract.php(534): Zend_Db_Table_Abstract->_setupMetadata()
#2 /mnt/storage/development/projects/akros/akros-zz/library/Zend/Db/Table/Abstract.php(269): Zend_Db_Table_Abstract->_setup()
#3 /mnt/storage/development/projects/akros/akros-zz/application/modules/webshop/controllers/CategoryController.php(20): Zend_Db_Table_Abstract->__construct()
#4 /mnt/storage/development/projects/akros/akros-zz/library/Zend/Controller/Action.php(502): Webshop_CategoryController->indexAction()
#5 /mnt/storage/development/projects/akros/akros-zz/library/Zend/Controller/Dispatcher/Standard.php(293): Zend_Controller_Action->dispatch('indexAction')
#6 /mnt/storage/development/projects/akros/akros-zz/library/Zend/View/Helper/Action.php(136): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#7 [internal function]: Zend_View_Helper_Action->action('index', 'category', 'webshop')
#8 /mnt/storage/development/projects/akros/akros-zz/library/Zend/View/Abstract.php(300): call_user_func_array(Array, Array)
#9 [internal function]: Zend_View_Abstract->__call('action', Array)
#10 /mnt/storage/development/projects/akros/akros-zz/application/modules/webshop/views/scripts/shop.phtml(66): Zend_View->action('index', 'category', 'webshop')
#11 /mnt/storage/development/projects/akros/akros-zz/library/Zend/View.php(46): include('/mnt/storage/de...')
#12 /mnt/storage/development/projects/akros/akros-zz/library/Zend/View/Abstract.php(769): Zend_View->_run('application/mod...')
#13 /mnt/storage/development/projects/akros/akros-zz/library/Zend/Layout.php(728): Zend_View_Abstract->render('shop.phtml')
#14 /mnt/storage/development/projects/akros/akros-zz/library/Zend/Layout/Controller/Plugin/Layout.php(142): Zend_Layout->render()
#15 /mnt/storage/development/projects/akros/akros-zz/library/Zend/Controller/Plugin/Broker.php(337): Zend_Layout_Controller_Plugin_Layout->postDispatch(Object(Zend_Controller_Request_Http) )
#16 /mnt/storage/development/projects/akros/akros-zz/library/Zend/Controller/Front.php(925): Zend_Controller_Plugin_Broker->postDispatch(Object(Zend_Controller_Request_Http) )
#17 /mnt/storage/development/projects/akros/akros-zz/index.php(65): Zend_Controller_Front->dispatch()
#18 {main}


Please, help to understand what's wrong? What can I do for suppress this error?

Thank you in advance!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:55 PM.