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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T01:02:39+00:00 2026-05-19T01:02:39+00:00

I am a ZF beginner. I am able to see http://localhost/square/public . Then I

  • 0

I am a ZF beginner.

I am able to see http://localhost/square/public.

Then I added var/www/square/layouts and master.phtml in the directory.
I have the following /var/www/square/application/configs/appliction.ini

When I visit the same page, it does not show anything.

What am I doing wrong here??

Thanks in advance.

application.ini

[production]
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.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.params.displayExceptions = 0
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.modules = ""
resources.layout.layoutPath = APPLICATION_PATH "/layouts"
resources.layout.layout = "master"


[staging : production]

[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1

[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
resources.frontController.params.displayExceptions = 1

Note:

  1. I set up a virtual host, so I can see it in http://square.localhost, if I take out
    resources.layout.layoutPath = APPLICATION_PATH “/layouts”
    resources.layout.layout = “master”

  2. When I echo APPLICATION_PATH in /var/www/square/application/modules/default/views/scripts/index/index.phtml , it outputs /var/www/square/application if I don’t add

    resources.layout.layoutPath = APPLICATION_PATH “/layouts”
    resources.layout.layout = “master”

  3. I have given 666 to all files and 777 to all directories.

Update:

Error messages are followings

Fatal error: Uncaught exception
‘Zend_Controller_Router_Exception’
with message ‘Route home is not
defined’ in
/var/www/square/library/Zend/Controller/Router/Rewrite.php:318
Stack trace:

0 /var/www/square/library/Zend/Controller/Router/Rewrite.php(464):
Zend_Controller_Router_Rewrite->getRoute(‘home’)

1 /var/www/square/library/Zend/View/Helper/Url.php(49):
Zend_Controller_Router_Rewrite->assemble(Array,
‘home’, false, true)

2 [internal function]: Zend_View_Helper_Url->url(Array,
‘home’)

3 /var/www/square/library/Zend/View/Abstract.php(342):
call_user_func_array(Array, Array)

4 /var/www/square/application/layouts/master.phtml(15):
Zend_View_Abstract->__call(‘url’,
Array)

5 /var/www/square/application/layouts/master.phtml(15):
Zend_View->url(Array, ‘home’)

6 /var/www/square/library/Zend/View.php(108):
include(‘/var/www/square…’)

7 /var/www/square/library/Zend/View/Abstract.php(880):
Zend_View->_run(‘/var/www/square…’)

8 /var/www/square/library/Zend/Layout.php(796):
Zend_View_Abstract->render(‘master.phtml’)

9 in /var/www/square/library/Zend/Controller/Router/Rewrite.php
on line 318

Update 2.

I am reading a book called Zendframework A Beginner Guide.

I have the following in master.phtml

<!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" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <base href="/" />
    <link rel="stylesheet" type="text/css" href="/css/master.css" />
  </head>
  <body>
    <div id="header">
      <div id="logo">
        <img src="/images/logo.gif" />
      </div>

      <div id="menu">
        <a href="<?php echo $this->url(array(), 'home'); ?>">HOME</a>
        <a href="<?php echo $this->url(array('page' => 'services'), 'static-content'); ?>">SERVICES</a>
        <a href="#">CONTACT</a>
      </div>
    </div>

    <div id="content">
      <?php echo $this->layout()->content ?>
    </div>

    <div id="footer">
      <p>Created with <a href="http://framework.zend.com/">Zend Framework</a>. Licensed under <a href="http://www.creativecommons.org/">Creative Commons</a>.</p>
    </div>    
  </body>
</html>

I commented out and it shows a page now.

 <a href="<?php // echo $this->url(array(), 'home'); ?>">HOME</a>
 <a href="<?php // echo $this->url(array('page' => 'services'), 'static-content'); ?>">SERVICES</a>
  • 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-19T01:02:39+00:00Added an answer on May 19, 2026 at 1:02 am

    blank white page means , there is some error but its hidden due to this config :

    phpSettings.display_startup_errors = 0
    phpSettings.display_errors = 0 
    resources.frontController.params.displayExceptions = 0 
    

    could you please change to be like this :

    phpSettings.display_startup_errors = 1
    phpSettings.display_errors = 1
    resources.frontController.params.displayExceptions = 1 
    

    and update your question with te error msg
    so we can help you 🙂

    update
    this error indicate that zf trying to find route called home
    , routes deceleration usually saved in the application.ini , so i am not sure if this is ready made application or you are the programmer of this app

    but try to look for something like :

    $this->url(<!-- i am not sure what you might here but it usually array of module , controller , action --> , "home") ; 
    

    in the master.phtml and again update your question once again with that code snippet

    update 2

    i am pretty sure if you had added these 3 lines to your application.ini and uncomment your code in the layout your problem would be solved

    resources.router.routes.home.route = /home
    resources.router.routes.home.defaults.module = default           
    resources.router.routes.home.defaults.controller = index
    resources.router.routes.home.defaults.action = index  
    resources.router.routes.static-content.route = /content/:page              
    resources.router.routes.static-content.defaults.module = default           
    resources.router.routes.static-content.defaults.controller = static-content
    resources.router.routes.static-content.defaults.action = display           
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am a beginner in EF4 , and I am not able to understand
I'm a beginner struggling with IoC and DI. I'd like to be able to
I'm beginner with the Core Plot framework. Right now, I am able to render
I'm just a beginner at VB.NET... I want to be able to insert a
I am a beginner in Titanium Studio. I can able to open a mapview
This is a sed and RegEx beginner question, but I was not able to
Beginner level question Scenario: Have simple string cocantation tool, that I might expand later
Beginner help needed :) I am doign an example form a php book which
A beginner question, bear with me: I'm just wondering under what circumstances one should
A beginner's question. I'm building a .swf with Flex Ant. To my .swf I

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.