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 6370329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:55:00+00:00 2026-05-25T00:55:00+00:00

I am trying to create application with Zend framework so I have created basic

  • 0

I am trying to create application with Zend framework so
I have created basic application structure with zf tool.

Now when I try to start application with http://localhost/zendApp/public/index.php
the default “Welcome to the Zend Framework!” page loads.

But when I type http://localhost/zendApp/public/ or http://localhost/zendApp/public/index index controller is not invoked, but
rather I get error message:

*Invalid controller specified (zendApp)

array (
  'controller' => 'zendApp',
  'action' => 'public',
  'module' => 'default',
)
  • As you see, it is trying to start the controller with the name of application.
    Also if I create additional actions in index controller and call it with http://localhost/zendApp/public/index/newaction
    I get the same error:

    array (
    ‘controller’ => ‘zendApp’,
    ‘action’ => ‘public’,
    ‘index’ => ‘newaction’,
    ‘module’ => ‘default’,
    )

Can you help me understand why index controller is not invoked?
Thanks.

  • 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-05-25T00:55:01+00:00Added an answer on May 25, 2026 at 12:55 am

    The url for your controllers would not include the public folder. Eg UserController would be
    http://localhost/zendApp/user/ not http://localhost/zendApp/public/user, and your index controller should work on http://localhost/zendApp/ or http://localhost/zendApp/index.

    Your url rewiter (eg mod_rewrite) should be set up to rewrite all urls to /public/index.php other than static files eg images, css js etc. see here

    Do you have this setup:
    “If you are deploying to a “user” site (e.g. http://localhost/~rob), then you need a RewriteBase line in your .htaccess file that looks something like: RewriteBase /~rob/zf-tutorial/public/” from here

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

Sidebar

Related Questions

Im trying to learn how to set up a Zend framework web application from
I have a application built using Zend Framework. I have decided to go with
I'm trying to create a web application using a JavaScript framework (eg Extjs) for
Mjello there! I'm at the moment trying to create a F# application, and now
I'm trying to create an application that will let me execute a method specified
Trying to create a QtRuby application, I get the following error: /usr/lib64/ruby/site_ruby/1.8/Qt/qtruby4.rb:2144: [BUG] Segmentation
I am trying to create a WPF application that takes command line arguments. If
I'm trying to create a WPF application where I can drag an image around.
Trying to create a small monitor application that displays current internet usage as percentage
I'm trying to create a logger for a GWT application as an exercise to

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.