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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:08:01+00:00 2026-05-23T05:08:01+00:00

I initialize my placeholders for my global layout within the Bootstrap.php as described here

  • 0

I initialize my placeholders for my global layout within the Bootstrap.php as described here.

public function _initPlaceholders()
{
    $this->bootstrap('View');
    $view = $this->getResource('View');

    $view->doctype('XHTML11');

    $view->headTitle('Foo Bar Title')
         ->setSeparator(' :: ');

    $view->headMeta()->appendHttpEquiv(
        'content-type',
        'application/xhtml+xml; charset=UTF-8'
    );

    $view->headMeta()->appendName('robots', 'index,follow');

    $view->headLink()->appendStylesheet('/styles/styles.css', 'screen')
                     ->appendStylesheet('/styles/print.css', 'print');
}

The rendered HTML looks correct.

<title>Foo Bar Title</title>
<link href="/styles/styles.css" media="screen" rel="stylesheet" type="text/css" />
<link href="/styles/print.css" media="print" rel="stylesheet" type="text/css" />
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="robots" content="index,follow" />

But the CSS doesn’t get loaded correctly because Zend_Controller thinks it’s a controller or something. When I try to open the CSS files the following error occurs:

Fatal error: Uncaught exception
‘Zend_Controller_Dispatcher_Exception’
with message ‘Invalid controller
specified (error)’

Any hints?

[update]

Ok, just added the following line to my .htaccess file and all works as expected now…

RewriteRule
!.(js|ico|txt|gif|jpg|png|css|htc|swf|htm)$
index.php

  • 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-23T05:08:01+00:00Added an answer on May 23, 2026 at 5:08 am

    A typical Zend project layout looks something like this:

    .
    |-- application
    |   |-- Bootstrap.php
    |   |-- configs
    |   |-- controllers
    |   |-- forms
    |   |-- layouts
    |   |-- models
    |   `-- views
    |-- library
    `-- public
        |-- images
        |   `-- favicon.ico
        |-- index.php
        |-- js
        |   `-- scripts.js
        `-- styles
            `-- style.css
    

    Does yours look similar? Specifically, do you have CSS and JavaScript files somewhere under the public folder (and not the application folder)? If so, can you review file permissions?

    Also, I recommend reviewing file permissions. If the CSS files aren’t readable by the Apache process, then Apache won’t be able to serve them.

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

Sidebar

Related Questions

when i initialize the player like this: $(#jquery_jplayer).jPlayer({ ready: function () { this.element.jPlayer(setFile, /previews/cancion.mp3,
I want to initialize a struct element, split in declaration and initialization. This is
I am using a hashtable to store key-value pairs and I initialize this hashtable
I'm using a JavaScript upload script that says to run the initialize function as
//Initialize the detail view controller and display it. OrderDetailsView *dvController = [[OrderDetailsView alloc] initWithNibName:@OrderDetailsView
I recently came across the Ruby EOB / -EOB construct within this context (from
When initialize an entity framework context. One is to initialize at class level, such
To initialize an int array with all zeros, do I need to use: int
def initialize(apps, catch=404) @apps = []; @has_app = {} apps.each { |app| add app
How do I initialize an automatic download of a file in Internet Explorer? For

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.