« Return to Thread: ZF quickstart not working?

Re: ZF quickstart not working?

by weierophinney :: Rate this Message:

Reply to Author | View in Thread

-- Mon Zafra <monzee@...> wrote
(on Thursday, 14 May 2009, 10:23 AM +0800):

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

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            | matthew@...
Zend Framework          | http://framework.zend.com/

 « Return to Thread: ZF quickstart not working?