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

  • Home
  • SEARCH
  • 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 8474271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:35:00+00:00 2026-06-10T17:35:00+00:00

I am using zend framework. My structure is (only included files and folders needed

  • 0

I am using zend framework.

My structure is (only included files and folders needed for this question):

application
  >configs
  >controllers
  >forms
  >images
  >layouts
    >scripts
      >layout.phtml
  >models
  >styles
    >style.css
  >views
    >scripts
      >index
        >index.phtml
  Bootstrap.php
docs
library
logs
public
test

I have got the layout working properly. However, I want to ask a couple of questions in order to get my set up perfect for the way I want it.

  1. Is application>styles a good place for the stylesheet to be? If not what’s the recommended?
  2. How do i add the stylesheet to the layout?
  3. In my layout I have a title tag : <title>Text</title>. How do I pass values from my controllers to it?
  • 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-10T17:35:01+00:00Added an answer on June 10, 2026 at 5:35 pm
    1. Stylesheets need to be accessible from the browser, so typically you will put these somewhere in the public directory, such as public/css

    2. There are several ways, including placing rel tags in your view/layout, but my preferred option is to use the viewHelper within your controller:

      $this->view->headLink()->setStylesheet(‘/css/style.css’);
      Then your call to headLink() in the layout file will automatically include the stylesheet.

    3. The way I have done this is to use the Zend_Registry in the past. There may be better ways.

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

Sidebar

Related Questions

i have been using a modular structure for my zend framework application. This is
Im making a Zend Framework MVC application using the standard Zend MVC structure and
I set up a Zend Framework application using Zend_Tool, but I wanted multiple modules
I have a PHP MVC application using Zend Framework. As presented in the quickstart,
I'm building a multi-site Zend Framework application using modules, sort of in the following
I'm working on an application developed using Zend Framework. I have defined relationships in
I am working on Zend Framework and using module based structure with multiple databases.
I am using a framework similar to codeIgniter and Zend FW. So URL structure
This is my first experience using the Zend Framework. I am attempting to follow
I am trying to use the Zend Framework without using the MVC structure, specifically

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.