-- lroot <[EMAIL PROTECTED]> wrote
(on Friday, 19 October 2007, 10:03 PM -0700):
> I'm running threw a simple Zend framework tutorial trying to familiarize
> myself
> with the framework. I have a simple application that stores and displays cd
> albums and artist names. My problem lies in my index action where I generate
> the full list. On the first load of the this action I do a fectchAll from my
> Zend DB Table object and save the result with Zend Cache and then send the
> result to the view which loops through the result and displays it. The first
> load works fine. On subsequent loads I try to load the date from Zend Cache
> and
> send it on to the view. However this time the view throws an error/notice:
> Notice: Trying to get property of non-object in... When I do a Zend Debug Dump
> of the result of the Zend Cache load it *appears* that what was returned was
> the proper object:
>
> object(__PHP_Incomplete_Class)#21 (8) {
> ["__PHP_Incomplete_Class_Name"] => string(20) "Zend_Db_Table_Rowset"
This tells me that you haven't loaded the class prior to loading the
object from the cache. The easiest way to fix this is to use autoload,
and that can be done by calling the following in your bootstrap:
require_once 'Zend/Loader.php';
Zend_Loader::registerAutoload();
--
Matthew Weier O'Phinney
PHP Developer | [EMAIL PROTECTED]
Zend - The PHP Company | http://www.zend.com/