-- neozf <neomakan-z...@yahoo.com> wrote
(on Monday, 22 June 2009, 03:07 AM -0700):
> I am new to zend I have downloaded the community server with the framework
> ... I have created a new project for the quick start on my C drive
> 
> c:\ZendProject\quickstart
> 
> I have added the reference to the zend framework library folder to my
> winodws path
> 
> 
> in my httpd.conf I have added the following
> 
> 
> <Location /quick>
>     Order deny,allow
>     Allow from all
> </Location>
> 
> Alias /quick "C:\ZendProject\quickstart\public"

Create a vhost in your apache configuration pointing to the public
directory instead:

    NameVirtualHost *:80
    <VirtualHost *:80>
        DocumentRoot "C:\ZendProject\quickstart\public"
        ServerName quick.local

        <Directory "C:\ZendProject\quickstart\public">
            DirectoryIndex index.php
            AllowOverride All
            Order allow,deny
            Allow from all
        </Directory>
    </VirtualHost>

Then add the following entry to C:\WINDOWS\system32\drivers\etc\hosts :

    127.0.0.1 quick.local

Restart apache, and then browse to http://quick.local/ and you should
find that your "index.php" references go away.

If they don't, make sure that your installed apache has mod_rewrite.

> I then  created a new action in the index controller just as a test
> 
> public function showAction()
>     {
>          
>             echo "Show";
>     }
> 
> 
> I have created a new view , under view->scripts->index and named it
> show.phtml
> 
> 
> My .htaccess in the public folder is the default one
> 
> SetEnv APPLICATION_ENV development
> 
> RewriteEngine On
> RewriteCond %{REQUEST_FILENAME} -s [OR]
> RewriteCond %{REQUEST_FILENAME} -l [OR]
> RewriteCond %{REQUEST_FILENAME} -d
> RewriteRule ^.*$ - [NC,L]
> RewriteRule ^.*$ index.php [NC,L]
> 
> 
> so when i do
> 
> localhost/quick/index.php/index/show
> 
> it works
> 
> but any url without the index.php doesnt work
> 
> This looks like an apache issue , but not sure how to solve it ... 

-- 
Matthew Weier O'Phinney
Project Lead            | matt...@zend.com
Zend Framework          | http://framework.zend.com/

Reply via email to