-- FishAreBest <[email protected]> wrote
(on Sunday, 07 February 2010, 02:56 AM -0800):
> I'm having problems with the QuickStart:
> http://framework.zend.com/manual/en/learning.quickstart.intro.html
> 
> I download the application:
> http://framework.zend.com/demos/ZendFrameworkQuickstart.zip
> (which contains a version dated ZendFrameworkQuickstart-20100203)
> 
> When I run it, the index page comes up OK, but clicking on the
> guestbook link gives me a corrupt HTML page (two lots of doctype,
> html, head, body tags, etc.) with the message "An Error Occurred".
> 
> I don't know where to start debugging this, so I went back to the
> tutorial.
> 
> Firstly, is there an easy way to copy/paste the code snippets into
> my own scripts without getting the line numbers?  This shouldn't
> need to be an exercise in copy-typing...
> 
> Secondly, the application.ini generated by zf.bat doesn't look like
> the one in the tutorial.  It has some extra lines in.  These may
> not be relevant, but perhaps the tutorial code isn't compatible
> with ZF1.10 ....
> 
> Thirdly, at the page:
> http://framework.zend.com/manual/en/learning.quickstart.create-layout.html
> it says to edit the application.ini.  Since the zend-tool has an option
> to do the same thing (zf.bat enable layout), is there a reason why we don't
> use it?
> Also, should there be a trailing "/".  zf.bat adds one, but the tutorial
> example doesn't.  It probably doesn't matter, but one form must be the
> "preferred" one, and this is a tutorial.  Which?
> 
> Fourthly, the script for application/layouts/scripts/layout.phtml
> seems to be missing the opening "<?php".  Of course, this is easily fixed,
> but shouldn't be necessary in a tutorial.
> 
> Before I continue with copy-typing, am I missing something?
> 
> Is this the right version of the tutorial?
> Is it known to work?

I pushed out new quickstart application archives late this past week,
but the narrative on the site has not yet been updated to reflect the
code (we'll be updating for the 1.10.1 release on Tuesday). 

The code _does_ work with 1.10 (I actually rewrite the app from scratch
with 1.10 to test), but, as noted, the site itself is not reflecting the
archive's structure. In the new content, which you can review from
subversion, we now use capabilities such as "zf enable layout" and "zf
configure db-adapter" -- 1.10 has actually helped to streamline the
quick start guide tremendously.

One thing you can and should do: in your vhost definition, add the
following line:

    SetEnv APPLICATION_ENV "development"

This will ensure that display_errors will be turned on, as well as some
extra functionality in the ErrorController and its views, which will
help you debug.

-- 
Matthew Weier O'Phinney
Project Lead            | [email protected]
Zend Framework          | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc

Reply via email to