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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T19:53:30+00:00 2026-05-20T19:53:30+00:00

The dir structure is: application models Milestones ObserverBroker.php => Application_Model_Milestone_ObserverBroker Observers Milestone.php => Application_Model_Observer_Milestone

  • 0

The dir structure is:

application
    models
       Milestones
          ObserverBroker.php    => Application_Model_Milestone_ObserverBroker
       Observers
          Milestone.php         => Application_Model_Observer_Milestone

at Bootstrap.php

$loader->addResourceType('observer','models/observers','Model_Observer');
$loader->addResourceType('observerbroker','models/milestones','Model_Milestone');

The problem I encountered was:

[f@gail]$ php zfrun.php \
>         --environment development -a task.create-milestone -m '%s' \
>         -p '%s'
PHP Fatal error:  Class 'Application_Model_Milestone_ObserverBroker' not found in /var/www/html/sites/plugin_handler/application/controllers/TaskController.php on line 55

Fatal error: Class 'Application_Model_Milestone_ObserverBroker' not found in /var/www/html/sites/plugin_handler/application/controllers/TaskController.php on line 55


[f@gail]$ php zfrun.php \
>         --environment development -a task.update-milestone -m '%s' -o '%s' \
>         -p '%s'
PHP Fatal error:  Class 'Application_Model_Milestone_ObserverBroker' not found in /var/www/html/sites/plugin_handler/application/controllers/TaskController.php on line 81
  • 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-20T19:53:31+00:00Added an answer on May 20, 2026 at 7:53 pm

    You shouldn’t have to add a resource type for classes in the Application_Model_ namespace.

    The default module autoloader already includes rules for this, provided your configured appnamespace is “Application”

    As a test, I just created two models, Application_Model_Test (application/models/Test.php) and Application_Model_Test_Test (application/models/Test/Test.php) and without adding anything further, was able to create an instance of each in my controller.

    Edit

    On re-reading your question, it looks like you want to store the Application_Model_Milestone_ classes in “Milestone*s*” (plural) and likewise for the Observer classes. Whilst I think you would be better off just storing these under application/models/Milestone and application/models/Observer and letting the default autoloader do its thing, it looks like your problem is due to case sensitivity.

    Your $loader->addResourceType() calls are using lowercase folder names whereas your directory structure example uses Milestones and Observers (capital first letters).

    This will fail on a case-sensitive filesystem.

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

Sidebar

Related Questions

How to run PHPUnit test suite with bootstrap file with phing? My app structure:
Let's say I have this dir structure: /project1 /SomeFolder /obj /bin /project2 /obj /bin
dir(re.compile(pattern)) does not return pattern as one of the lists's elements. Namely it returns:
Suppose I have a directory /dir inside which there are 3 symlinks to other
'''use Jython''' import shutil print dir(shutil) There is no, shutil.move, how does one move
Given the URL (single line): http://test.example.com/dir/subdir/file.html How can I extract the following parts using
I often use this recursive 'visitor' in F# let rec visitor dir filter= seq
Here is one method that monkey patched the Dir[] method from autotest class Dir
I need to send a very specific (non-standard) string to an FTP server: dir
I have this on line 56 in my environment.rb: I18n.load_path += Dir[ File.join(RAILS_ROOT, 'lib',

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.