« Return to Thread: ZF quickstart not working?

Re: ZF quickstart not working?

by Mon Zafra :: Rate this Message:

Reply to Author | View in Thread

On Thu, May 14, 2009 at 10:03 AM, Breen Liblong <breen.liblong@...> 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.

 « Return to Thread: ZF quickstart not working?