My application structure:
- /application
- /models
- ShoppingCart.php
- /modules
- /orders
- /models
- Order.php
- /models
- /orders
- /models
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.