Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you set up your application using the Zend_Tool command line interface and it put the <code>.htaccess</code> file in the public folder, as is the default.<br /> This behavior you described is to be expected. The ZF MVC routes all requests through the index.php file (except for resources like images, css and javascript). So if you can route to your <code>Bootstrap.php</code> file directly, then you worry.<br /></p> <p>All urls in ZF should be in the form <code>www.example.com/moduleName/controllerName/actionName</code> with the abiltiy to append parameters as required. Also note that the <code>moduleName</code> is optional and will default to the <code>controllerName</code> if no <code>moduleName</code> matches a route.<br /></p> <p>To test your installation use the url like: <code>mehedi/public/index/</code> and you should see the default welcome screen. As you add controllers and actions you'll automatically add new url routes.<br /></p> <p>[EDIT] for example, if you add a controller called <code>AdminController</code> (if you add it with Zend_Tool it will be built with the indexAction() automatically). You will automatically be able to route to the <code>AdminController/indexAction</code> with a url of <code>www.mehedi.com/admin/index</code> and it would work. (in most applications index is specified as the default action so <code>www.mehedi.com/admin</code> would achieve the same result)</p> <p>P.S. Do your self a favor and setup a <a href="http://apptools.com/phptools/virtualhost.php" rel="nofollow">virtul host</a> it makes life so much easier</p> <p>here is an example what your vhosts might look like, it's important to declare the localhost as the first vhost if you intend to use it.</p> <pre><code>httpd-vhosts.conf with Include conf/extra/httpd-vhosts.conf enabled in httpd.conf NameVirtualHost *:80 # # VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # The first VirtualHost section is used for all requests that do not # match a ServerName or ServerAlias in any &lt;VirtualHost&gt; block. # &lt;VirtualHost *:80&gt; DocumentRoot "C:\Zend\Apache2/htdocs" #I use Zend server, make this match your wamp setup ServerName localhost #directory settings for localhost are typically defined in httpd.conf &lt;/VirtualHost&gt; &lt;VirtualHost *:80&gt; DocumentRoot "E:/wamp/www/mehedi/public" ServerName www.mehedi.com ErrorLog "path/to/your/log/file" &lt;directory "E:/wamp/www/mehedi"&gt; Options Indexes FollowSymlinks AllowOverride all Order Deny,Allow Deny from all Allow from 127.0.0.1 &lt;/directory&gt; &lt;/VirtualHost&gt; </code></pre> <p>it's important to remember this kind of vhost setup is intended to be used on a local dev machine or an internal network server, you would not want to do this on a production server unless you really know what you are doing.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload