Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [ZendFramework] setFetchMode i problem z ustawieniem trybu
porady-it.pl
post
Post #1





Grupa: Zarejestrowani
Postów: 89
Pomógł: 20
Dołączył: 13.05.2007
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


Witam,

Przy próbie ustawienia trybu zwracania danych:

  1. <?php
  2. $objCustomersManager = new CustomersManager();
  3.  
  4. $db = $objCustomersManager -> getAdapter();
  5.  
  6. $db -> setFetchMode(Zend_Db::FETCH_GROUP);
  7. ?>


dostaję następujący komunikat:

Kod
Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message 'Invalid fetch mode '65536' specified' in C:\AppServ\www\ZendProject\library\Zend\Db\Adapter\Pdo\Abstract.php:281 Stack trace: #0 C:\AppServ\www\ZendProject\application\controllers\CustomersController.php(17): Zend_Db_Adapter_Pdo_Abstract->setFetchMode(65536) #1 C:\AppServ\www\ZendProject\library\Zend\Controller\Action.php(502): CustomersController->indexAction() #2 C:\AppServ\www\ZendProject\library\Zend\Controller\Dispatcher\Standard.php(293): Zend_Controller_Action->dispatch('indexAction') #3 C:\AppServ\www\ZendProject\library\Zend\Controller\Front.php(914): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #4 C:\AppServ\www\ZendProject\public\index.php(40): Zend_Controller_Front->dispatch() #5 {main} thrown in C:\AppServ\www\ZendProject\library\Zend\Db\Adapter\Pdo\Abstract.php on line 281


--------------------
Kurs Video PHP i MySQL, porady-it.pl - gotowe rozwiązania dla webmasterów
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 19.08.2025 - 05:29