Once again I've victimized myself with copy-paste. The code sample for Guestbook.php on the "Create a Model and Database Table" page is obviously not the complete file, but merely fragment. I suspect the same for other code samples as well (and have ensured that there is a <?php tag at the beginning of all .php files)..
I've made the changes, and no longer get the class not found error, but the page now comes up with no entries below the "Guestbook Entries:" line. Can anyone please help me get past this one? Again, thanks for everyones help. Breen Brenton Alker-3 wrote: > > Breen Liblong wrote: >> Now I get as far as the bottom of the page Create a Model and Database >> Table, >> and when I browse to http://localhost/guestbook, I get the following >> error: >> >> // application/models/Guestbook.php class Default_Model_Guestbook { >> protected $_comment; protected $_created; protected $_email; protected >> $_id; >> protected $_mapper; public function __construct(array $options = null) { >> if > [snip] >> } } >> Fatal error: Class 'Default_Model_Guestbook' not found in >> /home/breen/tmp/zfproject/quickstart/application/controllers/GuestbookController.php >> on line 15 >> > > Looks like you're missing an opening <?php tag at the start of > application/models/Guestbook.php. > > -- > > Brenton Alker > PHP Developer - Brisbane, Australia > > http://blog.tekerson.com/ > > > > -- View this message in context: http://www.nabble.com/ZF-quickstart-not-working--tp20383454p23550962.html Sent from the Zend Framework mailing list archive at Nabble.com.
