Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7796453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:22:38+00:00 2026-06-01T23:22:38+00:00

My problem maybe easy to solve, but I really can’t figure it out. I

  • 0

My problem maybe easy to solve, but I really can’t figure it out.

I followed the instructions in the book “Beginning Zend framework” creating a new project.
The project has 2 controllers ‘account’ and ‘artist’. Here is the tree view of /application:

.
├── application
│   ├── Bootstrap.php
│   ├── configs
│   │   └── application.ini
│   ├── controllers
│   │   ├── AccountController.php
│   │   ├── ArtistController.php
│   │   ├── ErrorController.php
│   │   └── IndexController.php
│   ├── models
│   └── views
│       ├── helpers
│       └── scripts
│           ├── account
│           │   ├── activate.phtml
│           │   ├── index.phtml
│           │   ├── new.phtml
│           │   └── success.phtml
│           ├── artist
│           │   ├── index.phtml
│           │   └── list-all-artists.phtml
│           ├── error
│           │   └── error.phtml
│           └── index
│               └── index.phtml

How can I setup document root to access /account/new.phtml, for example? (When typing 127.0.0.1, I can see the default index page “Welcome to the Zend Framework!”, but I don’t know how to access other pages).

More information:
+) The document root is /…/public/ (which contains .htacess and index.php)
+) 127.0.0.1/index also returns that page, but 127.0.0.1/index/index.phtml does not work.
http://127.0.0.1/account, http://127.0.0.1/artist return 404 error.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T23:22:39+00:00Added an answer on June 1, 2026 at 11:22 pm

    Welcome to ZF! A personal thing I do is always setup a Vhost, rather than just use the standard “localhost“. This really helps with the management of separate projects, and allows you to store it in an easier location.

    If you try to do localhost/account, what happens? If you get any type of errors, then you haven’t setup Apache properly. Here’s a sample Vhost that I use:

    <VirtualHost *:80>
       ServerName project.local
       DocumentRoot "C:\xampp\htdocs\project\public"
    
    
       # This should be omitted in the production environment
       SetEnv APPLICATION_ENV development
    
       <Directory "C:\xampp\htdocs\project\public">
           Options Indexes MultiViews FollowSymLinks
           AllowOverride All
           Order allow,deny
           Allow from all
       </Directory>
    
    </VirtualHost>
    

    Go ahead and try to do something similar, and create the respective line in your HOSTS file, clear your cache, and you should be set!

    Also, in your structure, I noticed you’re missing a public folder. Be sure you have one, along with a .htaccess to rewrite to index.php. Edit: just saw your edit, you should already have this taken care of.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm facing a problem that I assumed would be very easy to solve but...
I've got a big problem but I bet it's easy to solve. I'm developing
Maybe you can help me with a problem I am having. The URL of
Maybe this is a simple problem, but I am just not seeing it :)
I meet a problem yesterday. Maybe it's because it is April 1st... but it
I have a problem with preg_match_all that maybe you can help. I have a
Maybe I'm just thinking about this too hard, but I'm having a problem figuring
Maybe world peace would be easier, but I have a problem with the widths
i am looking for opinions if the following problem maybe has a better/different/common solution:
Maybe someone found a workaround for the following problem: It seems as if AXIS

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.