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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:06:25+00:00 2026-06-13T14:06:25+00:00

I need the Zend translator in a dynamic CSS file that I write with

  • 0

I need the Zend translator in a dynamic CSS file that I write with php.

So far, I always used the Zend translator outside of a view or a controller like this:

Zend_Registry::get('Zend_Translate')->translate('hello');

When using this in my dynamic CSS (which is located in the public folder) the Zend_Registry class cannot be founc

Class 'Zend_Registry' not found

How can I get the Zend translator to work in the public folder?

  • 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-13T14:06:26+00:00Added an answer on June 13, 2026 at 2:06 pm

    You need to setup the autoloader (or at least the include path) at the top of your PHP script:

    set_include_path('/path/to/library');
    require_once 'Zend/Loader/Autoloader.php';
    $autoloader = Zend_Loader_Autoloader::getInstance();
    

    then the script should be able to load the ZF classes.

    If you are serving CSS files with PHP, make sure you are serving (and handling) the appropriate cache headers so the browser doesn’t have to download the file with every request.

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

Sidebar

Related Questions

I need to run in my zend project, inside a controller something like: <?php
I need a Zend Framework start up guide PDF file. http://www.mikaelkael.fr/Zend-Framework-1-8-x-documentation.html this is an
Zend talk.I need two submit buttons in my Zend_form so that after populating or
Is there any Zend Helper that can make PDF document with tables. i need
i need to pass an array from my zend action to the view, possibly
This is my Zend Framework directory structure (only included what you'll need): -Controllers -HomeController.php
I need to generate reports in my PHP website (in zend framework) Formats required:
I need a framework for php. I've got few suggestion to use Zend Framework.
I need to rapidly build good software in php and using the zend framework.
I need to use Zend Captcha and wrote the follwoing code: <?php require_once ('Zend/Form.php');

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.