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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:01:48+00:00 2026-05-28T03:01:48+00:00

I have a Zend Framework modular application set up. One of my modules is

  • 0

I have a Zend Framework modular application set up. One of my modules is called ‘frontend’ and it is the default module (resources.frontController.defaultModule = "frontend" is in my config file).

I have a form, Frontend_Form_PropertySearch located at /application/modules/frontend/forms/PropertySearch.php and attempting to use it in my controller as follows:

public function searchAction()
{
    $form = new Frontend_Form_PropertySearch();

    $form->submit->setLabel('Search');
    $this->view->form = $form;
}

However, I’m getting the following error:

Fatal error: Class ‘Frontend_Form_PropertySearch’ not found in /Users/Martin/Dropbox/Repositories/realestatecms/application/modules/frontend/controllers/PropertiesController.php on line 17

Where am I going wrong?

  • 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-28T03:01:48+00:00Added an answer on May 28, 2026 at 3:01 am

    One of solutions could be adding file application/modules/frontend/Bootstrap.php and put this (similar working on one of my projects):

    <?php
    class Frontend_Bootstrap extends Zend_Application_Module_Bootstrap
    {
        protected function _initAutoload()
        {
            $autoloader = new Zend_Application_Module_Autoloader(array(
                'namespace' => 'Frontend_',
                'basePath'  => APPLICATION_PATH .'/modules/frontend',
                'resourceTypes' => array (
                    'form' => array(
                        'path' => 'forms',
                        'namespace' => 'Form',
                    ),
                    'model' => array(
                        'path' => 'models',
                        'namespace' => 'Model',
                    ),
                )
            ));
            return $autoloader;
        }
    }
    

    Another solution, as described by akrabat: http://akrabat.com/zend-framework/bootstrapping-modules-in-zf-1-8/

    // file application.ini
    resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
    resources.modules[] = ""
    
    File: /application/modules/frontend/Bootstrap.php
    
    <?php
    class Frontend_Bootstrap extends Zend_Application_Module_Bootstrap
    {
    
    }
    

    Second one uses default resource autoloader as described in documentation: http://framework.zend.com/manual/zh/zend.loader.autoloader-resource.html#zend.loader.autoloader-resource.module

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

Sidebar

Related Questions

i have been using a modular structure for my zend framework application. This is
I have a zend framework project with 2 modules - admin and default. the
I have a Zend Framework application structure as below: /application /library /Zend /Core /Filter
I have a PHP MVC application using Zend Framework. As presented in the quickstart,
I have a Zend Framework application based on the quick-start setup. I've gotten the
I have a Zend Framework application that is making use of jQuery UI. In
I have a Zend Framework (PHP) web application that has a table with a
I have a Zend Framework application whose sole purpose is to serve as an
On zend framework inside my bootstrap file i have the following code: $frontController =
I'm about to start work a small, modular application in Zend Framework. Just want

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.