Hi,
        I have almost completed the guestbook tutorial.  I have altered the
database/model portion to use my MySQL database.  I am using
ZendFramework-1.10.2.  Everything seems to work except when, I try to
"http://localhost/guestbook";.  I looked in the prior posts and I seem to
have all the correct code.  I receive the following error:


_dbTable = $dbTable; return $this; } public function getDbTable() { if (null
=== $this->_dbTable) {
$this->setDbTable('Application_Model_DbTable_Guestbook'); } return
$this->_dbTable; } public function save(Application_Model_Guestbook
$guestbook) { $data = array( 'email' => $guestbook->getEmail(), 'comment' =>
$guestbook->getComment(), 'created' => date('Y-m-d H:i:s'), ); if (null ===
($id = $guestbook->getId())) { unset($data['id']);
$this->getDbTable()->insert($data); } else {
$this->getDbTable()->update($data, array('id = ?' => $id)); } } public
function find($id, Application_Model_Guestbook $guestbook) { $result =
$this->getDbTable()->find($id); if (0 == count($result)) { return; } $row =
$result->current(); $guestbook->setId($row->id) ->setEmail($row->email)
->setComment($row->comment) ->setCreated($row->created); } public function
fetchAll() { $resultSet = $this->getDbTable()->fetchAll(); $entries =
array(); foreach ($resultSet as $row) { $entry = new
Application_Model_Guestbook(); $entry->setId($row->id)
->setEmail($row->email) ->setComment($row->comment)
->setCreated($row->created);                   $entries[] = $entry; } return
$entries; } }
Fatal error: Class 'Application_Model_GuestbookMapper' not found in
/usr/local/web/htdocs/msbwc-d/application/controllers/GuestbookController.php
on line 14

I check and Application_Model_GuestbookMapper exists in models so the
controller should see it.  Does anyone not what I should be looking for?

Jeff
-- 
View this message in context: 
http://n4.nabble.com/quickstart-Fatal-error-Class-Application-Model-GuestbookMapper-Not-found-tp1589164p1589164.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to