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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:03:44+00:00 2026-05-18T20:03:44+00:00

I am a beginner working with Zend Framework, and currently having a small problem:

  • 0

I am a beginner working with Zend Framework, and currently having a small problem:

I am creating a project based on modular architecture and requesting this URL:

http://localhost/MyApp/public/ –> which is where index.php resides. My core module is called “core” inside /application/modules directory as follows:

/Applications/modules/
-- Core
---- controllers
------ ErrorController.php
------ IndexController.php
---- views
------ scripts
-------- error/error.phtml
-------- index/index.phtml.

Everytime i refresh the page i get error.phtml displayed which is weird. Because my module does define it’s routes as follows:

[routes]
routes.core_index_index.type = "Zend_Controller_Router_Route_Static"
routes.core_index_index.route = "/"
routes.core_index_index.defaults.module = "core"
routes.core_index_index.defaults.controller = "index"
routes.core_index_index.defaults.action = "index"
routes.core_index_index.defaults.frontend = "true"
routes.core_index_index.defaults.langKey = "route_index_page_description"
routes.core_index_index.defaults.localization.enable = "true"

Plus the fact that i do have RewriteBase set to /var/www/html/MyApp/public. So why is my error.phtml being displayed while index.phtml should be the view script to be rendered?

Following is my setup for production config in application.ini

phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
appnamespace = "Application"
resources.frontController.defaultModule = core
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.params.displayExceptions = 0
resources.frontController.params.prefixDefaultModule = "1"
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"

Content of error page being displayed:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>Zend Framework Default Application</title>
</head>
<body>
  <h1>An error occurred</h1>
  <h2>Page not found</h2>


</body>
</html>

Any help is truly appreciated.

  • 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-18T20:03:45+00:00Added an answer on May 18, 2026 at 8:03 pm

    Okay, i got this to work:

    Since am requesting http://localhost/MyApp/public/, i had to modify the routing to:

    [routes]
    routes.core_index_index.type = "Zend_Controller_Router_Route_Static"
    routes.core_index_index.route = "/MyApp/public/"
    routes.core_index_index.defaults.module = "core"
    routes.core_index_index.defaults.controller = "index"
    routes.core_index_index.defaults.action = "index"
    routes.core_index_index.defaults.frontend = "true"
    routes.core_index_index.defaults.langKey = "route_index_page_description"
    routes.core_index_index.defaults.localization.enable = "true"
    

    Change was from:

    routes.core_index_index.route = "/"
    

    To:

    routes.core_index_index.route = "/MyApp/public/"
    

    Which is not exactly what i was looking for. Is there a way to skip /MyApp/public part of the URI?

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

Sidebar

Related Questions

I am a beginner working with Zend Framework, and currently having a small problem:
I'm a beginner to caching. I'm currently working on a small project with Django
installing Zend Framework is so easy!!!! yeah right... Ok I'm working with a beginner's
I'm a beginner in WPF and currently working on my first app. For this
I am using NHibernate for my project. i am quite a beginner at working
I am a beginner in Java and am working on a Mastermind project for
As a beginner in Ocaml, I have this current working code: ... let ch_in
I am a Qt beginner and working with Qt Designer to develop some small
I'm a beginner in C# and I'm working on this program consisting of 4
As a MacRuby beginner I am working through this tutorial , and want 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.