-- 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/