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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:53:47+00:00 2026-06-16T21:53:47+00:00

I am working on a Zend PHP project and I’m trying to separate out

  • 0

I am working on a Zend PHP project and I’m trying to separate out the code into a custom library, for example “Custom”. At present this mainly consists of some custom forms.

My folder structure is as follows.

/project root
 /Library
  /Custom
    /Forms
      /Account
        /Login.php
      Base.php
  /Zend
  ...

The Login.php and Base.php have the following naming conventions:

class Custom_Form_Account_Login extends Custom_Form_Base
{

}

class Custom_Form_Base extends Zend_Form
{

}

Finally, I placed the following line in my application.ini file

autoloaderNamespaces[] = "Custom_"

Then to create the form, I have this in the controller…

$form    = new Custom_Form_Account_Login();

However when I load the page, I get an error telling me that Custom_Form_Account_Login cannot be found. The include path is displayed and I can see that “/project root/Library” is there so I’m a bit confused as to why the class cannot be found.

I’ve tried a number of different lines in the application.ini and I have restarted the server upon making changes yet the error still persists.

Other lines I’ve tried include:

autoloadernamespaces[] = "Custom_" //All lowercase
autoloaderNamespaces[] = "Custom"  //Without the underscore
autoloaderNamespaces.custom = "Custom_"
autoloaderNamespaces.0 = "Custom_"

As mentioned I am using Zend 1.12. I would ideally like to configure this in the .ini file.

  • 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-16T21:53:48+00:00Added an answer on June 16, 2026 at 9:53 pm

    Your folder name is Forms (plural) but the class name uses Form (singular). In the context you are describing, these need to be the same. Form (singular) is probably better as it mirrors the ZF structure.

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

Sidebar

Related Questions

Hi I'm currently working on some php - zend framework project on my osx
I am working on a project using zend framework, php, mysql on ubuntu. I
I've got my flex, php & zend project working fine on localhost but when
I am working on a huge php application with Zend framework, in that project
so, I'm working on a databases project, and i'm trying to code incrementally. the
I am working on zend framework, PHP and jQuery. I am working on popups
I am working with zend just recently. I discovered this ViewScript decorator for form
I'm working within zend forms. Currently this is how it looks: I want to
I am working on a project that pulls data from JMS queue using PHP
I am working on a Zend project and it has been well over 12

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.