Here's one of the explanations that brought the composite pattern to my attention:
http://devzone.zend.com/node/view/id/7
Incidental I'm having trouble getting the Inheritance method to work. I keep getting:
Fatal error: Cannot redeclare class cartmodel in /path/to/cake/models/cart_model.php on line 6
(Line 6 being the line with the closing bracket in the for the intermediate class)
e.g.
//======== Intermediate Model ==============
<?php
class CartModel extends AppModel {
} <----- Line 6
?>
//============ Model ====================
<?php
require_once('../cart_model.php');
class Quote extends CartModel
{
}
?>
//========================================I know it's something embarrassingly simple, I've seen this before but can't remember the problem.
Can anyone see it?
Cheers,
Sonic
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---
