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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T13:04:06+00:00 2026-06-02T13:04:06+00:00

I have made module Admin. In this module, in controller I have called form

  • 0

I have made module Admin. In this module, in controller I have called form

class Admin_AdminController extends Zend_Controller_Action
{

public function indexAction()
{
    //$form = new Application_Form_Login();
    $form = new Admin_Form_Admin();
    $this->view->form = $form;     
}

}

But In controller its giving error -> Class ‘Admin_Form_Admin’ not found in application\modules\Admin\controllers\AdminController.php

My forms is in application\modules\Admin\forms\Admin.php.Below is my form code

class Admin_Form_Admin extends Zend_Form
{

public function init()
{

    this->setMethod('post');

    /* Form Elements & Other Definitions Here ... */

    $user = $this ->CreateElement('text','username');

    $password = $this->createElement('text','password');

    $login = $this->createElement('submit','button');

    $this->addElements(array($user,
                              $password,
                              $login
                        ));
}
}
  • 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-02T13:04:07+00:00Added an answer on June 2, 2026 at 1:04 pm

    Three things are required here…

    1. You need to bootstrap the modules resource

      ; application.ini
      resources.modules[] =
      
    2. You need to set the modules directory in your front controller

      ; application.ini
      resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
      
    3. You need a bootstrap class in your admin module

      <?php
      // application/modules/Admin/Bootstrap.php
      class Admin_Bootstrap extends Zend_Application_Module_Bootstrap {}
      

    With these three things in place, your code should work as-is.

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

Sidebar

Related Questions

I have a custom module I made for Magento. From the admin, there is
Hi we have made a module for a controller and that module uses the
I have made one project in java. Now in this particular module, i am
I have made a script to intimate the admin the list of module need
i have made a module using hook function . its working but when i
I have made a file called time.hs . It contains a single function that
This problem arose in a module I'm writing, but I have made a minimal
Lets Suppose that I have made a custom authentication module that inherits IHttpModule class.
I have made up the custom module as : YUI.add('util', function(Y) { Y.namespace('com.myCompany'); var
I have made my custom module in magento, in which I have set discount

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.