That's the problem. I moved the data directory up a level (to peer with the application directory) and everything worked.
My error stemmed from an incorrect assumption that the data directory resided in the application directory, rather than in the parent (i.e. quickstart) directory. Looking over the tutorial, I can see how I made the mistake, as the tutorial page, up to the mkdir data/db section, is all in the context of working in the application directory (or one of it's subdirs), and I misread the sentence "Note that the database(s) will be stored in data/db/." within that context. I think it would have helped me to see a complete directory structure graph. The one on the "Create Your Project" is great, but doesn't show the data directory (since it hasn't been created yet). Thanks very much to all for your help in getting me over this doh! error. Breen Matthew Weier O'Phinney-3 wrote: > > -- Mon Zafra <[email protected]> wrote > (on Thursday, 14 May 2009, 10:23 AM +0800): >> On Thu, May 14, 2009 at 10:03 AM, Breen Liblong <[email protected]> >> wrote: >> OK, here's some additional information. >> >> I'm working through the Zend Framework tutorial and have got to the >> Create >> a >> Model and Database Table section >> (http://framework.zend.com/docs/quickstart/ >> create-a-model-and-database-table), >> and am stuck at executing "php scripts/load.sqlite.php" >> >> My configuration is >> /home/breen/tmp/zfproject/quickstart/application/controllers >> /home/breen/tmp/zfproject/quickstart/application/models >> /home/breen/tmp/zfproject/quickstart/application/data <<< emphasis >> mine >> /home/breen/tmp/zfproject/quickstart/public/index.php >> /home/breen/tmp/zfproject/quickstart/application/Bootstrap.php >> >> [snip] >> >> >> The file >> >> /home/breen/tmp/zfproject/quickstart/application/configs/application.ini >> defines the database path as >> ... >> resources.db.params.dbname = APPLICATION_PATH >> "/../data/db/guestbook.db" >> ... >> >> >> Shouldn't this be APPLICATION_PATH "/data/db/guestbook.db"? Since the >> data >> directory resides in the application directory. > > Well, in the QuickStart, it's supposed to be as follows: > > application/ > data/ > public/ > > but clearly the OP didn't do that. If that's the case, then they need to > change their config accordingly, as you suggest. > > -- > 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--tp20383454p23544064.html Sent from the Zend Framework mailing list archive at Nabble.com.
