|
|||
|
I am new to Zend and am attempting to cache a large db query. If it's not cached, it works (in the sense that I can iterate through my Table_Rowset in my view). But, if it's cached, I always get the following (snipped):
__PHP_Incomplete_Class Object ( [__PHP_Incomplete_Class_Name] => Zend_Db_Table_Rowset..... "followed by all of the data I expect" I'm creating my cache object in the preDispatch() function with the following code: PHP Code:
PHP Code:
Suggestions??? Thanks, Darren |
|
|||
|
I was finally able to resolve this by adding two loadClass statements above my cache loads. For example,
PHP Code:
Nabble - Zend Framework - Zend_Cache, storing objectsI don't understand why the example in the Zend Framework documentation is not more clear on this. Zend Framework: DocumentationBTW, I know that my logic is flawed. So, if you are here looking for an a solution to your own problem, don't let that throw you off. If I sort my table by any order other than id, the cached version doesn't match what I want. But, that wasn't my short term goal. I just wanted to get my cache working. That part is working. I'll work on the remaining logic next. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|