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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:58:58+00:00 2026-06-11T15:58:58+00:00

I use Zend Framework and have the following custom file (this is the only

  • 0

I use Zend Framework and have the following custom file (this is the only file in this library!) in my own library (not de main ZF-library) :

/home/web/library/php/Zend/Form/Element/Xhtml.php

and my include path is:

/home/web/domains/secondstart/application/../../../library/php:/home/web/domains/secondstart/application/../library:.:/usr/local/zend/share/ZendFramework/library:/usr/local/zend/share/pear

The regular file is present in the ZF library (in /usr/local/zend/share/ZendFramework…).

Now in ZF the Zend_Form_Text_Element extends the Xhtml_Element as below (snippet):

...
require_once 'Zend/Form/Element/Xhtml.php';

/**
 * Text form element
 *
 * @category   Zend
 * @package    Zend_Form
 * @subpackage Element
 * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 * @version    $Id: Text.php 23775 2011-03-01 17:25:24Z ralph $
 */
class Zend_Form_Element_Text extends Zend_Form_Element_Xhtml
{
...

But my custom file is ignored when calling the Text_Element. When I remove the Xhtml.php file from the ZF library, it does pick my custom file. So it looks like the ZF regular library is preferred over my custom class despite my custom Zend Library being the first entry in my include path. Note that I have the exact same configuration in my development environment where it works as expected.

Any help as to why this happens and ca be avoided is greatly appreciated.

Some background: I do not like fiddling with external libraries but here it is really useful: I can break in into the internal Zend extension chain (to change the default decorators of Zend_Form_Element) an then let the ZF-library continue to do its brilliant work.

  • 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-11T15:58:59+00:00Added an answer on June 11, 2026 at 3:58 pm

    The issue was probably server side caching of code by zend server (CE). When I came back after lunch it worked as expected. I did eliminate browser caching by using Chrome incognito but forgot to think of server caching.

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

Sidebar

Related Questions

On zend framework inside my bootstrap file i have the following code: $frontController =
I have my own mysql_connect ...etc until i wanted to use ZEND framework in
I have a Zend Framework project using version 1.10.8 with Doctrine 1.2.4.I use Zend_Auth
I have an application developed in Zend Framework 1.11. I use Zend_OpenId to create
In our project we use Zend Framework Model generator, which produces something like this
I have the following problem with Zend tool (component of Zend Framework) When I
I use Zend Framework and I have problem with JSON and UTF-8. Output \u00c3\u00ad\u00c4\u008d
I need to use autoloading for my custom classes in Zend Framework 2.0 .
Zend Framework: I have the following url /base/url/[number]/[string] OR /base/url/action/controller/param/value I want in the
This article explains how to use Zend in Codeigniter. http://www.beyondcoding.com/2008/02/21/using-zend-framework-with-codeigniter/ I am using XAMPP

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.