Thank you Matthew. I don't know how I missed it, but I didn't see the prominent links to the source code on any of the pages. I've reconciled the differences and rerun load.sqlite.php, and it's now working. It should be a smooth run through the rest of the tutorial.
Regards, Breen Matthew Weier O'Phinney-3 wrote: > > -- Breen Liblong <[email protected]> wrote > (on Thursday, 14 May 2009, 04:33 PM -0700): >> 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).. > > The <?php is implied in all the examples. > > Also... every page has a link to download the full, working code for the > quick start. You can always take a look in there to see where what > you've done differs. > >> 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? > > Click the link to add an entry, and start adding some. :) > > Alternately, re-run the scripts/load.sqlite.php script, with an > argument: > > % php load.sqlite.php --loaddb > > (doesn't matter what the last argument is; as long as one is present, it > will populate the DB with a few test entries.) > > >> 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. >> > > -- > Matthew Weier O'Phinney > Project Lead | [email protected] > Zend Framework | http://framework.zend.com/ > > -- View this message in context: http://www.nabble.com/ZF-quickstart-not-working--tp20383454p23566676.html Sent from the Zend Framework mailing list archive at Nabble.com.
