-- aoohralex <[email protected]> wrote
(on Tuesday, 15 September 2009, 10:55 AM -0700):
> Yes I have more questions :) I know Symfony Framework and SF is MORE
> comfortable but I have some questions about ZF:
> 
> 1. Why I must register to download ZF ?

You don't need to. The first, prominent link is to zend.com where you
can download ZF from the zend.com CDN -- which offers much better
download rates globally.

If you do not want to register, if you scroll down further on the page,
you'll find direct links.

> 2. Why after generate ZF project using console:
> zf.bat create project quickstart
> and after placed it on the server it DOESN'T WORK !!
> I must create .htaccess:
> RewriteEngine On
> RewriteRule ^(.*)$ /quickstart/public/$1 [QSA,L] 
> And then it works - BUT YOU SHOULD WRITE ABOUT THAT IN TUTORIAL !!

There's a sentence about this at the end of the second page of the
quickstart:

    "Create a virtual host in your web server, and point its document
    root to your application's public/ subdirectory. Make sure your
    host's name is in your DNS or hosts file, and then point your
    browser to it."
    http://framework.zend.com/docs/quickstart/create-your-project

Note, it says to point your vhost to the project's *public*
subdirectory. If you look in that directory, you'll see that an
appropriate .htaccess file has been created.

> 3. Why I must modify application.ini file ? I must add:
> resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts"
> and create folder 'layout/scripts/layout.phtml'  ? It should be in generated
> project !! Everybody needs layout !! So it should be in generated project.

IIRC, Ralph is adding a Zend_Tool provider for adding the layout.
Layouts are *optional* within Zend Framework, but a provider will allow
generating one via the command line tool; we may make it a default
option as well, however, during project creation.

In the meantime, please be aware that one key difference between symfony
and ZF is that ZF does not generate much code for you; editing files is
much more common than generating them.

(I personally have a hard time switching to symfony, as I prefer to get
my hands dirty in the code; switching to a paradigm where tools are used
to generate code is difficult for me. I know the opposite is true for
symfony users who use ZF.)

> 4. In which file should I write login, password etc. - to have access to my
> MySQL database ? I want to see empty places to write these data in some
> file.

This is covered in the quickstart:

    http://framework.zend.com/docs/quickstart/create-a-model-and-database-table

Look for the fourth code sample, which shows adding your database
configuration to the configuration file. You will need to lookup what
options are necessary and/or available for your database adapter, and
those may be found here:

    
http://framework.zend.com/manual/en/zend.db.html#zend.db.adapter.connecting.parameters

-- 
Matthew Weier O'Phinney
Project Lead            | [email protected]
Zend Framework          | http://framework.zend.com/

Reply via email to