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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:31:08+00:00 2026-05-17T19:31:08+00:00

Hey, I seem to be climbing a pretty horrible learning curve. It’s taking me

  • 0

Hey,
I seem to be climbing a pretty horrible learning curve. It’s taking me hours to even get to the point where I can structure/write code. I originally wanted to be able to store a form or a model inside its respective module, for example: ./application/module/ModuleName/forms/ClassName.php but when I tried to instantiate a class with: $form = new ModuleName_Form_ClassName(); it failed. Therefore, I thought I would simplify everything by moving it to the default module. However it still isn’t working. I’m still doing something wrong. I’ve no idea what.

Inside my controller action I have this:

// some other code
$form = new Form_Login();

On loading the action, I get this error message:

Fatal error: Class 'Form_Login' not found in /some folder/www/application/modules/default/controllers/AdministrationController.php on line 22

My application.ini contains:

appnamespace = "SomeModule"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.params.displayExceptions = 0
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.modules[] = 

The form is stored inside ./application/modules/default/forms/Login.php

1. How can I troubleshoot this? The error message I am getting is next to useless.

2. I really think all of my problems might be solved if there was some way of debugging the __autoload() function. Is there not?

3. Can there not be a way of using models/forms from another Module inside the default module? That is what I wanted to do. I thought it would make everything more structured. If this isn’t possible I just can’t see how this would be useful at all…

Cheers,

An ailing newbie Zend developer.

  • 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-17T19:31:09+00:00Added an answer on May 17, 2026 at 7:31 pm

    Sounds like you almost had it the first time. Let’s say your module is Users and your form Login. In order for application/module/users/forms/Login.php to work:

    • The form class defined in that file needs to be called Users_Form_Login
    • You need resources.modules[] = in your application.ini to initialise the module resource (which you have)
    • You need a module bootstrap for that module (this is what sets up the module autoloader). So minimally you need a bootstrap class like this:

    .

    class Users_Bootstrap extends Zend_Application_Module_Bootstrap
    {
    
    }
    

    defined at application/module/users/Bootstrap.php. The paths are case sensitive.

    I agree that the autoloader can be quite difficult to debug, unfortunately it’s one of those things that either works or it doesn’t, but once you have it setup you can forget about it. Hopefully the above will answer your third question – yes you can use forms from another module inside the default one.

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

Sidebar

Related Questions

Hey guys I can't seem to get the syntax here right, I'm just trying
hey guys, i can't seem to get it working. i have a div.post with
Hey all. I can't for the life of me seem to get this blasted
Hey there, I have a simple problem but can't seem to get the solution
Hey i can't seem to understand this error. I'm trying to select an image
Hey, I can't seem to access the returned value from a method I called
Hey everyone I got a javascript problem I can't seem to find a specific
Hey this is probably a dumb question but i can't seem to find a
Hey so I cannot seem to get Facebook, OmniAuth, Rails, and Heroku to play
Hey, i cant seem to get this to work, im a little confused on

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.