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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:16:55+00:00 2026-05-17T22:16:55+00:00

My application structure: /application /models ShoppingCart.php /modules /orders /models Order.php I want to create

  • 0

My application structure:

  • /application
    • /models
      • ShoppingCart.php
    • /modules
      • /orders
        • /models
          • Order.php

I want to create a module application so in my application.ini I put:

resources.frontController.moduleDirectory = APPLICATION_PATH “/modules”

resources.modules[] = “”


Basically my Application_Model_ShoppingCart for my main application needs the Orders_Model_Order to place an order:

class Application_Model_ShoppingCart
{
 static public $mCartId;

 function __construct()
 {
  #$this->OrderModel = new Orders_Model_Order();
  $this->SetCartId();
 }
}

class Orders_Model_Order
{
 function __construct()
 {
  $this->PP_Session = Zend_Registry::get('PP_Session');

 }
}

But I keep getting a fatal error:

Fatal error: Class ‘Orders_Model_Order’ not found in .. /application/models/ShoppingCart.php on line 13

I keep trying different things but it still doesnt include this module with the autoloader. Is there something I should be doing?

Thanks in advance.

  • 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-17T22:16:56+00:00Added an answer on May 17, 2026 at 10:16 pm

    Two possible solutions.

    Add in application.ini:

    autoloaderNamespaces[] = 'Application_'
    

    or add module bootstrap:

    // /application/modules/orders/Boostrap.php
    class Orders_Bootstrap extends Zend_Application_Module_Bootstrap {}
    

    and put your Order_Model_Order models to:

    /application/modules/orders/models/Order.php
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a large application (~50 modules) using a structure similar to the following:
I'm trying to design an XML document structure for my application. I want to
I have a Zend Framework application structure as below: /application /library /Zend /Core /Filter
the directory structure I'm trying to achieve would be this: application/default/views/layouts/layout.phtml application/default/views/scripts/index/index.phtml application/admin/views/layouts/layout.phtml application/admin/views/scripts/index/index.phtml
I am trying to determine the best directory structure of my application i have:
I am interested in choosing a good structure for an online message board-type application.
Here's the situation: I'm developing a simple application with the following structure: FormMain (startup
I'm replacing an old web application with a new one, with different structure. I
Our application is structured something like: UI <--> REST API <--> Workflow <--> Business
Our application is well structured (well we did our best!) and we have split

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.